Alt codes
Dan Tobias (Talk | contribs) (Created page with "{{FormatInfo |formattype=electronic |subcat=Character Encodings }} '''Alt codes''' are the codes for entering "special" characters in PC/MS-DOS and Windows, allowing a wider ...") |
Dan Tobias (Talk | contribs) (→Original DOS-based codes) |
||
Line 8: | Line 8: | ||
== Original DOS-based codes == | == Original DOS-based codes == | ||
− | The original DOS-based codes consisted of numbers from the [[IBM PC code pages]], depending on what language setting was in effect on the PC. In English-speaking countries, it was usually CP 437. Any three-digit number not starting with a zero will be interpreted as one of these codes even now, which will result in the corresponding character from the current character set if it exists. | + | The original DOS-based codes consisted of numbers from the [[IBM PC code pages]], depending on what language setting was in effect on the PC. In English-speaking countries, it was usually CP 437. Any three-digit (or less) number not starting with a zero will be interpreted as one of these codes even now, which will result in the corresponding character from the current character set if it exists. |
== Windows codes == | == Windows codes == |
Revision as of 11:32, 16 April 2013
Alt codes are the codes for entering "special" characters in PC/MS-DOS and Windows, allowing a wider character repertoire than is found on keyboards. They have been in use since the early days of the IBM PC, and have been designed for compatibility over the years, resulting in some codes from obsolete character encodings still working in addition to more modern Unicode-based ones. Codes are entered on keyboards by holding down the Alt key while pressing the appropriate digits or letters for the code.
Contents |
Original DOS-based codes
The original DOS-based codes consisted of numbers from the IBM PC code pages, depending on what language setting was in effect on the PC. In English-speaking countries, it was usually CP 437. Any three-digit (or less) number not starting with a zero will be interpreted as one of these codes even now, which will result in the corresponding character from the current character set if it exists.
Windows codes
When encodings such as Windows 1252 (and others for different languages) were implemented, the corresponding character codes could be entered by prefixing the character code point with a leading zero.
Unicode
Finally, when Unicode support was added, these were done by pressing the + sign followed by a hexadecimal number. It is necessary to modify the Windows registry (create registry entry HKCU\Control Panel\Input Method\EnableHexNumpad with type REG_SZ to value 1, and then restart or re-login to enable this setting) to allow these codes to work.