Re: string encoding

[email protected] ("Hong Zhang") Fri, 16 Feb 2001 14:39:10 -0800
Newsgroups perl.perl6.internals.unicode
Organization Stratum8 Corp.
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