[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode support
From: |
Pawel Kot |
Subject: |
Re: Unicode support |
Date: |
Fri, 27 Sep 2002 10:11:39 +0200 |
>>> address@hidden 27 September 2002 09:48:51 >>>
> I thought the same. And with my tests with Hu's test app wctomb always
> returned 1 not 2.
>
> So I throw the following code into the ring ;-)
>
> void char_decode_unicode(unsigned char* dest, const unsigned char* src, int
> len)
> {
> int i;
>
> for (i = 0; i < len; i++)
> wctomb(dest + strlen(dest), (src[i * 2] << 8) | src[(i * 2) +
> 1]);
> return;
> }
>
> Works with both my 6210 folders and Hu's test app.
I think it won't work. Not sure, but I think it has the current semantics.
The whole purpose of this patch is that wide character may be more
then 2 bytes wide (for chinese characters, 2 bytes are sufficient for
all european languages I think).
pkot
- Re: Unicode support, (continued)
- Re: Unicode support, Pawel Kot, 2002/09/26
- Re: Unicode support, Pawel Kot, 2002/09/26
- Re: Unicode support, Hu Gang, 2002/09/26
- Re: Unicode support, Pawel Kot, 2002/09/27
- Re: Unicode support, Markus Plail, 2002/09/27
- Re: Unicode support, Hu Gang, 2002/09/27
Re: Unicode support,
Pawel Kot <=
Re: Unicode support, Pawel Kot, 2002/09/27