Skip to content

WindowsApi:NationalLanguageSupport

GetACP

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

Retrieves information about a locale specified by identifier.

CP_ACP vs CP_OEMCP

See also

Favorite site

References


  1. Backga.tistory.com_-_Windows_character_encoding.pdf 

  2. Jiniya.net_-_unicode_in_windows_application.pdf