24 Jun
2008
24 Jun
'08
9:01 a.m.
"Huang, Zhangrong" <hzhrong(a)gmail.com> wrote:
I mean fix GdiGetCodePage like:
if (charset == ANSI_CHARSET || charset == DEFAULT_CHARSET) { cp = GetACP(); if (cp == 936 || cp == 950 || cp == .....) return cp;
else (TranslateCharsetInfo(....)) .... }
I didn't see any better way.
That definitely will break any charset specified in the font (like symbol, russian, etc.) in CJK locale. Most likely what happens is a font linking/substituting for ANSI_CHARSET. -- Dmitry.