Front page | perl.perl6.internals.unicode |
Postings from February 2001
Re: string encoding
Thread Previous
|
Thread Next
From:
Hong Zhang
Date:
February 16, 2001 16:32
Subject:
Re: string encoding
Message ID:
053101c09869$480ddcf0$2d031dc0@wora
> > But the memcmp() can not be used for UTF-32 string comparison, because
> > of endian issue.
>
> What endian issue? If you have two differently-endian strings being
> compared at the C level, you have *far* bigger design problems
> than the choice of UTF.
My argument was:
You can use memcmp() to compare binary order of two UTF-8 strings.
But you can not use memcmp() to compare binary order of two UTF-32
strings on little endian machines, even both strings are using
the same endian.
BTW, with UTF-8, you never worry about endian issue.
Hong
Thread Previous
|
Thread Next