Получает кодовую страницу установленную на компьютере (ANSI).
UINT GetACP(VOID);
Возвращенное значений содержит код страницы. Они бывают следующими:
874 Thai 932 Japan 936 Chinese (PRC, Singapore) 949 Korean 950 Chinese (Taiwan; Hong Kong SAR, PRC) 1200 Unicode (BMP of ISO 10646) 1250 Windows 3.1 Eastern European 1251 Windows 3.1 Cyrillic 1252 Windows 3.1 Latin 1 (US, Western Europe) 1253 Windows 3.1 Greek 1254 Windows 3.1 Turkish 1255 Hebrew 1256 Arabic 1257 Baltic
Пример:
// TestAPI.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "iostream.h" void main() { cout << GetACP() << endl; }
У меня 1251 как ни странно :-)