|
From: | Hu Gang |
Subject: | Re: Unicode support |
Date: | Thu, 26 Sep 2002 17:06:14 +0800 |
On Thu, 26 Sep 2002 09:24:52 +0200 "Pawel Kot" <address@hidden> wrote: |>>> address@hidden 26 September 2002 09:18:16 >>> |> On Thu, 26 Sep 2002 08:40:01 +0200 (CEST) |> Pawel Kot <address@hidden> wrote: |> |> |On Thu, 26 Sep 2002, Hu Gang wrote: |> | |> |> Use this patch. enable the USE_NLS. You will can read and send chinese |> |> characters. Please test. |> | |> |Isn't it the old version of our DecodeUnicode()? AFAICS it handles only 2 |> |bytes wide characters. AFAIK Chinese ones can be also 3 bytes wide. |> | |> Yes, It is old version, only for 0.4.3. | |And what's the problem with the new version? | Here is the patch for current CVS. I'm write an mini program to test the convert function . The tst_unicode.c is it. @@@@@@@@ With patch : $ ./tst_unicode c4 |e3 |311|322|ba |c3 |311|355|00 |00 |00 |00 ..12..15.... 4fO|60`|00 |311|00 |322|59Y|7d}|00 |311|00 |355|00 |00 |00 |00 O`.1.2Y}.1.5.... b0 |f4 |05 |08 |f0 |f1 |05 |08 ........ c4 |e3 |311|322|ba |c3 |311|355|00 |00 |f4 |08 ..12..15.... address@hidden [~/deve/cvs/local/tst] @@@@@@@@ Without patch $ ./tst_unicode c4 |e3 |311|322|ba |c3 |311|355|00 |00 |00 |00 ..12..15.... 00 |3f?|00 |3f?|00 |311|00 |322|00 |3f?|00 |3f?|00 |311|00 |35 .?.?.1.2.?.?.1.5 00 |00 |00 |00 |00 |00 |00 |00 ........ 3f?|3f?|311|322|3f?|3f?|311|355|00 |00 |00 |00 ??12??15.... address@hidden [~/deve/cvs/local/tst] So, The patch can fix it. Hope Pawel Kot can add it into cvs tree. It is stable for me. -- - Hu Gang
00000000.mimetmp
Description: PGP signature
cvs.diff
Description: Text document
tst_unicode.c
Description: Text Data
pgpGHSxzLNlO_.pgp
Description: PGP signature
[Prev in Thread] | Current Thread | [Next in Thread] |