From: Rick Cameron (Rick.Cameron@businessobjects.com)
Date: Fri Jan 16 2004 - 11:56:28 EST
Unfortunately, you cannot use UTF-8 as the default MBCS code page in
Windows. In other words, Windows does not support the equivalent to setting
the locale to xxx.UTF-8 in unix.
But the good news is that in Windows (unlike unix), wchar_t always means
UTF-16. And UTF-16 is a whole lot more convenient to work with than UTF-8!
From: firstname.lastname@example.org [mailto:email@example.com] On
Behalf Of Deepak Chand Rathore
Sent: January 16, 2004 2:38
Subject: UTF8 locale & shell encoding
i am dealing with utf-8 unicode , using functions mbstowcs( ),wcwidth(
),etc defined in wchar.h for converting wide char to utf8 & other things.
For these functions to behave correctly , i need to set locale to xxx.UTF-8
As solaris has en_US.UTF8 (w/o installing any extra support) , there is no
i don't know about HP, AIX, DEC, other flavours of unix ?? (any good URL
where i can get this information ??) in unix i can generate utf8 locales
But i am having problem especially in windows, as i can't find a locale
i tried changing windows code page to utf8 using _setmbcp(65001), but it
didn't work as the functions i am using is locale dependent.
in java, it's really easy, but i am coding in c++ What shall i do now????
I also want to know the shell encoding in different OS (windows & different
flavours of unix) Is the shell encoding same as the default locale encoding
This archive was generated by hypermail 2.1.5 : Fri Jan 16 2004 - 12:34:01 EST