Get Code Page from wchar_t string

208 views Asked by At

Is there a way to get the code page given a string in a given language?

Example:

TCHAR *str = "你好";
int codepage = GetCodePage(str);  // Should return 936 Chinese Simplified.
0

There are 0 answers