WindowsApi:NationalLanguageSupport
GetACP
- [https://msdn.microsoft.com/en-us/library/windows/desktop/dd318070(v=vs.85.aspx MSND - GetACP]
- Stackoverflow - How can I programmatically determine the current default codepage of Windows?
Retrieves the current Windows ANSI code page identifier for the operating system.
Caution
The ANSI API functions, for example, the ANSI version of TextOut, implicitly use GetACP to translate text to or from Unicode. For the Multilingual User Interface (MUI) edition of Windows, the system ACP might not cover all code points in the user's selected logon language identifier. For compatibility with this edition, your application should avoid calls that depend on GetACP either implicitly or explicitly, as this function can cause some locales to display text as question marks. Instead, the application should use the Unicode API functions directly, for example, the Unicode version of TextOut.
INFORMATION |
ANSI API 함수 (ex. ANSI 버전의 TextOut)는 암시 적으로 GetACP를 사용하여 텍스트를 유니 코드로, 또는 유니 코드에서 텍스트로 변환합니다. |
GetOEMCP
- [https://msdn.microsoft.com/en-us/library/windows/desktop/dd318101(v=vs.85.aspx MSDN - GetOEMCP]
Retrieves information about a locale specified by identifier.
CP_ACP vs CP_OEMCP
See also
Favorite site
- Stackoverflow - Can I get a code page from a language preference?
- 윈도우에서 사용하는 문자 코드에 대한 이해 1
- 유니코드 윈도우의 정체 2