Jump to content

Alt code: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Reverted edits by 71.244.44.167 (talk) to last revision by Mjb (HG)
Line 9: Line 9:
* Release the Alt key to produce the character.
* Release the Alt key to produce the character.


The same method can be used without changing the registry, but it will only work in Rich Edit controls (the text input widgets found in programs like [[WordPad]]), and it will interpret the code point as decimal, not hexadecimal.
I LOVE PIE


== Legacy (compatibility) methods ==
== Legacy (compatibility) methods ==

Revision as of 01:39, 7 September 2010

On personal computers running the Microsoft Windows or DOS operating systems, additional characters to those available in the current keyboard layout can be typed using an Alt code: pressing and holding the Alt key while entering a character code with the keyboard's numeric keypad.

Unicode characters

The following method can be used on Microsoft Windows to enter any Unicode codepoint as a hexadecimal number:

  • Set the registry key HKCU\Control Panel\Input Method\EnableHexNumpad to type REG_SZ and value 1 and reboot.
  • Keep the Alt key pressed. Press the "+" key on the numeric keypad.
  • With the Alt key still pressed, type the hexadecimal number using the numeric keypad for digits 0-9 and the normal keys for a-f. For example, type +11b to produce ě (e with caron).
  • Release the Alt key to produce the character.

The same method can be used without changing the registry, but it will only work in Rich Edit controls (the text input widgets found in programs like WordPad), and it will interpret the code point as decimal, not hexadecimal.

Legacy (compatibility) methods

For compatibility with pre-Unicode versions of Windows, characters from certain single-byte character sets can be entered by typing a decimal number on the numeric keypad while keeping Alt pressed. There are two character sets to choose from:

  • If the number typed has a leading 0 (zero), the character set used is the ANSI code page that matches the current input locale. For most systems in North America and Western Europe, this is Windows-1252. For a complete list, see code page.
  • If the number does not have a leading 0 (zero), DOS compatibility with is invoked. The character set used is the DOS code page for the current input locale. For most systems in North America, this is code page 437. In Western Europe, this is usually code page 850. For a complete list, see code page.

If Num Lock is disabled, attempting an Alt code may cause unexpected results in some applications. For example, Alt+4 can be taken as Alt+Left Arrow, causing a web browser to go back one page.

Many laptops do not have a separate numeric keypad; however, the Fn key can be used to turn certain keys into a numeric keypad.

See also

References