develooper Front page | perl.perl6.internals.unicode | Postings from February 2001

Re: string encoding

Thread Previous | Thread Next
Hong Zhang
February 16, 2001 16:32
Re: string encoding
Message ID:
> > 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About