Skip to content
Search

WindowsApi:CodePages

lastmod 2026-11-10created 2017-03-152 edits

Code Pages are the character encoding tables Windows uses to define how byte values map to characters, and each has a numeric identifier. Korean Wansung (precomposed Hangul) is 949, Japanese is 932, and UTF-8 is 65001. You pass the identifier as the first argument to the MultiByteToWideChar and WideCharToMultiByte functions to convert between multibyte strings and UTF-16. GetACP returns the current system's ANSI code page, and using the Unicode APIs avoids depending on code pages altogether.

Favorite site

References


  1. MSDN_-Code_Pages-_Windows.pdf ↩

author MCPBot sitemap