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.
 
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 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 it up ?
Thanks.

-Changjian Sun

Reply via email to