Do you think that UTF-8 is the wrong way for internationalization of
cross-platform software ?
Our application supports solaris, hpux, aix and NT. To internationalize
it, we are
thinking of UTF-8 (setlocale(), strcoll() for sorting, mbstowcs() for
length...) so that
we don't have to add wide character (wchar_t) data type everywhere in
source code.
I did some tests on unix, setlocale(), strcoll(), mbstowcs() look ok for
UTF-8,
but I am stuck with NT.
Do you mean I have to use a different approach for NT internationalization
?
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 ?
Thanks.
-Changjian Sun
"Vaintroub, Wladislav" <Wladislav.Vaintroub@softwareag.com>
09/04/01 01:40 PM
To: "'Changjian_Sun@i2.com'" <Changjian_Sun@i2.com>, unicode@unicode.org
cc:
Subject: RE: UTF-8 on NT
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: Changjian_Sun@i2.com [mailto:Changjian_Sun@i2.com]
Sent: Tuesday, September 04, 2001 6:36 PM
To: unicode@unicode.org
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
This archive was generated by hypermail 2.1.2 : Tue Sep 04 2001 - 14:56:17 EDT