Re: Nonsense in http://www.unicode.org/Public/PROGRAMS/CVTUTF/CVTUTF.C?

From: Michael \(michka\) Kaplan (michka@trigeminal.com)
Date: Wed Aug 22 2001 - 18:59:15 EDT


From: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>

> Functions ConvertUCS4toUTF8 and ConvertUTF8toUCS4 use surrogates
> in UCS4. In particular ConvertUTF8toUCS4 converts a character above
> U+FFFF into two UCS4 words. Why is this absurd there?!

UCS-4 has no knowledge of surrogate code points or their significance; it is
ap urely algorithmic conversion. Not sure why the results would be so
surprising, given this?

Of course it makes the idea of keeping the functions around a lot less
intelligent. :-)

MichKa

Michael Kaplan
Trigeminal Software, Inc.
http://www.trigeminal.com/



This archive was generated by hypermail 2.1.2 : Wed Aug 22 2001 - 20:00:35 EDT