Re: [Cppunit-devel] Specifying coed page (was: Toward True Unicode Code... Help requested)
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-04-16 12:39:54
|
----- Original Message ----- From: "Duane Murphy" <dua...@ma...> To: "Baptiste Lepilleur" <gai...@fr...>; "CppUnit Developers" <cpp...@li...> Sent: Tuesday, April 16, 2002 1:37 AM Subject: Re: [Cppunit-devel] Toward True Unicode Code... Help requested > --- At Mon, 15 Apr 2002 23:32:29 +0200, Baptiste Lepilleur wrote: > [...] > I'm not sure where you want to specify a code page and I'm not always > clear as to what a code page means in some contexts. I think (and this is > very old memory) that the encoding of an XML file can be UTF-8. Beyond > that, I dont know. The only stuff I know to specify code page is VC++ specific: // Set the locale setlocale( LC_ALL, "jpn" ); // Set the code associated to the current locale _setmbcp( _MB_CP_LOCALE ); When you do that, VC++ is supposed to use the specified locale when doing MBCS <=> UNICODE conversion. So, if you could specify a UTF8 code page, you would have a cheap way of doing UTF8/UNICODE conversion. (understand UNICODE as wchat_t ;-) ). Baptiste. |