RE: [xsl] CJK UTF-16 test

Subject: RE: [xsl] CJK UTF-16 test
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 29 Mar 2001 09:55:05 +0100
> XML does NOT support UTF-16 since UTF-16 includes the
> surrogates - that is
> in fact what *distinguishes* it from UCS-2. That the XML 1.0
> spec ('scuse
> me, 'Recommendation') *says* that it requires support for UTF-16 is in
> fact an error in the text since it explicitly forbids surrogates (aka
> UTF-16) in the allowed char range spec.

XML says that a surrogate pair (two UTF-16 code-points) counts as one
character. The only thing it disallows is using one half of a surrogate pair
without the other half.

Mike Kay
Software AG

 XSL-List info and archive:

Current Thread