Wim:
GREAT THANKS!
I will bookmark this thread for future ref. thanks again.
Best Regards
Zhimin
2010/7/8 Wim Dumon <[email protected]>
> Zhimin,
>
> My apologies, the correct syntax to change the global locale seems to
> be: std::locale::global(std::locale(""));
> This will read the locale from the environment, and make it the global
> C++ locale. So for you, it seems that on your system this is
> equivalent to:
> std::locale::global(std::locale("zh_CN.UTF-8"));
> Or in combination with WString:
> WString("ascii text", std::locale("C"));
> WString("UTF-8 chars", std::locale("zh_CN.UTF-8"));
>
> (or simply use WString::fromUTF8() for UTF-8 locales)
>
> Regards,
> Wim.
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest