Alt code: Difference between revisions

Content deleted Content added
Windows: Try again to remove confusion between keyboard layouts and active code page
Tag: Reverted
Undid revision 1296400116 by Spitzak (talk). You're not right. Each keyboard layout have a associated codepage (TranslateCharsetInfo() call with TCI_SRCLOCALE flag is used under the hood to get it). And it is used for hex input with Alt+0### combinations. Not "system locale".
Tags: Undo Reverted
Line 19:
 
* The familiar Alt+### combination (where ### is from 0 to 255) retains the old [[MS-DOS]] behavior, i.e., generates characters from the legacy code pages now called "[[Windows code page#OEM code page|OEM code pages]]." For instance, the combination {{key press|Alt}}+{{key press|1}}{{key press|6}}{{key press|3}} would result in {{char|ú}} (Latin letter u with [[acute accent]]) which is at 163 in the OEM code page of CP437 or CP850.<ref name="WindowsAltAlgo" /> This did not work for characters not in the Windows Code Page (such as box-drawing characters).
* The new Alt+0### combination (which prefixes a zero to each Alt code), produces characters from the newer [[Windows code page#ANSI code page|Windows code pages]].{{efn|Microsoft initially referred to them as "ANSI" code pages, but later acknowledged that this as a misnomer.}} of the current active input language. For example, {{key press|Alt}}+{{key press|0}}{{key press|1}}{{key press|6}}{{key press|3}} yields the character {{char|£}} (symbol for the [[pound sterling]]) which is at 163 in CP1252.<ref name="WindowsAltAlgo">{{Cite web |date=2016-07-22 |title=To input characters that are not on your keyboard |url=http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/lang_char_code_input.mspx |url-status=dead |archive-url=https://web.archive.org/web/20160722031546/http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/lang_char_code_input.mspx?mfr=true |archive-date=2016-07-22 |access-date=2022-12-30 |website=Microsoft }}</ref>{{efn|But Forif example,the {{keyuser press|Alt}}+{{keyhas, press|0}}{{keyfor press|1}}{{keyexample, press|6}}{{keyRussian press|3}}keyboard yieldsactive, then the charactercode {{char|£}}page [[CP1251]] (symbolCyrillic) foris used, where the symbol at codepoint 163 is [[poundJe sterling(Cyrillic)]]), whichit is atthis 163and innot CP1252£ that will be displayed.}}
* Users could change either or both of these code pages, in which case the numbers produced different characters. For instance if the Windows Code Page [[CP1251]] (Cyrillic) is active, {{key press|Alt}}+{{key press|0}}{{key press|1}}{{key press|6}}{{key press|3}} produces [[Je (Cyrillic)]] (Ј).
 
==Unicode==