Microsoft is absolutely correct in this matter. Unicode 2.1
conformance does not require surrogates to be supported.
Where UTF-8 is used, conformance does require surrogate pairs to be
properly handled, cf A-7.
---Lori Brownell <firstname.lastname@example.org> wrote:
> > Surrogate pairs are not defined/supported in current versions of
> > other words, a surrogate pair is treated as two undefined 16-bit
> > code values. However, MutliByteToWideChar and WideCharToMultiByte
> > conversions between UTF-8 and UCS-2 will preserve surrogate pairs
> > a loss of data. The Win32 conversions do not support UCS-4 32-bit
> > (non-BMP).
> Microsoft believes that non-BMP and surrogate pair support is not
> for Unicode 2.x conformance based on the Conformance Requirements
> in Section 3.1 of The Unicode Standard 2.0. Clause C4 does not
> support of surrogates, rather it prohibits the use of unpaired
> represent other characters (just as C6 says you can't assign an
> character to an unassigned code value). Microsoft products do not
> control or representation of data to unpaired surrogates, it simply
> them as unassigned Unicode code values.
> > -----Original Message-----
> > From: Markus Scherer [SMTP:email@example.com]
> > Sent: Monday, November 09, 1998 6:37 AM
> > To: Unicode List
> > Subject: Re: Displaying Plane 1 characters
> > Sorry if this was answered before -
> > Microsoft Windows Win32 APIs up to and including NT 5.0 beta 2
> > even
> > mistreat surrogate pairs and other representations (UTF-8) of
> > characters.
> > Conversions between UTF-8 and UCS-2 yield incorrect results for
> > characters, at least if "correct" means UTF-16 as specified in
> > .
> > Non-BMP characters are destroyed in these conversions.
> > I don't know if the OpenType technology supports this.
> > markus
> > PS: Microsoft advertises compliance with Unicode 2.12 . I expect
> > fulfill it eventually...
> > Markus Scherer IBM RTP +1 919 486 1135 Dept. Fax +1 919 254 6430
> > firstname.lastname@example.org
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:42 EDT