RE: UTF-8 on NT

2001-09-05 Thread Marco Cimarosti
Timothy Greenwood wrote: > What happens is you issue > chcp 65001 > from a DOS box that then kicks off the windows app? Nothing, I think. The encoding(s) of a GUI application is not influenced by the encoding(s) of the process that starts it. Especially, there is little or no link between the

RE: UTF-8 on NT

2001-09-04 Thread Carl W. Brown
Changjian Sun,   If you have code that is currently setlocale based then there is an easy conversion to Unicode.   With xIUA http://www.xnetinc.com/xiua/ you have a straight migration path to use the wonderful power of ICU.    You start by replacing your current i18n functions such as  set

Re: UTF-8 on NT

2001-09-04 Thread Markus Scherer
No. On Windows NT/2000/XP/CE, everything is UTF-16 Unicode, for all locales. Locales and codepages are separate, as they should be. You should compile your programs with UNICODE and _UNICODE defined to use the native Unicode kernel functions. UTF-8 is not possible - as far as I know - as a char

RE: UTF-8 on NT

2001-09-04 Thread Timothy Greenwood
>I'm afraid ,that there no way to set UTF-8 locale on Windows via setlocale. Even if you try >to do this with setlocale("French_Canada.65001") it won't work correctly. >It's a pitty , because the porting of Unix programms,relying on UTF-8 locale becomes very >challenging task on Windows. What h

RE: UTF-8 on NT

2001-09-04 Thread Yves Arrouye
 >  I'm also thinking of 3rd party UTF-8 support such as libutf8, IBM ICU.  >  They seem no good supports on NT, what do you think ? We are using ICU for all our Unicode needs, on NT, Windows 2000, and Unix, and it works perfectly well on all of these. YA  

RE: UTF-8 on NT

2001-09-04 Thread Changjian_Sun
ix programms,relying on UTF-8 locale becomes very challenging task on Windows.   Wladislav Vaintroub.     -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 04, 2001 6:36 PM To: [EMAIL PROTECTED] Subject: UTF-8 on NT Not like in unix, we can set Fre

Re: UTF-8 on NT

2001-09-04 Thread Michael \(michka\) Kaplan
quot; that would break pretty awfully with UTF-8!). MichKa Michael Kaplan Trigeminal Software, Inc. http://www.trigeminal.com/ - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 04, 2001 9:35 AM Subject: UTF-8 on NT > Not like i

RE: UTF-8 on NT

2001-09-04 Thread Vaintroub, Wladislav
I'm afraid ,that there no way to set UTF-8 locale on Windows via setlocale. Even if you try to do this with setlocale("French_Canada.65001") it won't work correctly. It's a pitty , because the porting of Unix programms,relying on UTF-8 locale becomes very challenging task on Windows.   Wla

UTF-8 on NT

2001-09-04 Thread Changjian_Sun
Not like in unix, we can set French UTF-8 locale by calling      setlocale(LC_ALL, "fr_CA.UTF-8"), On NT, I don't know how to set French UTF-8 locale, setlocale(LC_ALL, "French_Canada.1252") seems not for UTF-8 My questions: 1. Is UTF-8 supported on NT ? 2. If yes, how to use setlocale() to set