[Home] [By Thread] [By Date] [Recent Entries]


>    Surrogate pairs are one of the things a good class 
> library should hide from you.

If you always work in terms of strings or character arrays
(or StringBuffer) they ARE hidden ... just like the other
"multi-byte" character cases, like combining characters.

The problem is in developer assumptions that characters
are always a Java "char".  That's true in enough cases
that it causes problems, since beginners rarely learn that
it's not always true, but IMO that's just a teaching problem.

- Dave



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member