You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Julian Reschke <ju...@gmx.de> on 2003/11/13 13:12:26 UTC

Re: [litmus] Re: Test 16 is wrong

Stefano Mazzocchi wrote:

> I did. So this is definately a JDOM bug now.
> 
> Sorry for the noise :-(

Maybe tis helps: a Java-based XML processor usually uses Java 
characters, and those are (most of the time?) 16 bit values, hence 
Unicode characters beyond 0x10000 will be reported as surrogate pair 
(two chars).

This is correct, and no problem at all.

I except the problem occurs when Java text containing surrogate pairs is 
then serialized back to an XML stream (where the surrogate pair needs to 
be replaced by a single Unicode character).

Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: [litmus] Re: Test 16 is wrong

Posted by Stefano Mazzocchi <st...@apache.org>.
On 13 Nov 2003, at 13:12, Julian Reschke wrote:

> Stefano Mazzocchi wrote:
>
>> I did. So this is definately a JDOM bug now.
>> Sorry for the noise :-(
>
> Maybe tis helps: a Java-based XML processor usually uses Java 
> characters, and those are (most of the time?) 16 bit values, hence 
> Unicode characters beyond 0x10000 will be reported as surrogate pair 
> (two chars).
>
> This is correct, and no problem at all.
>
> I except the problem occurs when Java text containing surrogate pairs 
> is then serialized back to an XML stream (where the surrogate pair 
> needs to be replaced by a single Unicode character).

thanks for the suggestion!

--
Stefano.