RE: Java, UCS-2, and UTF

From: Mike Brown (
Date: Thu May 11 2000 - 17:08:04 EDT

> Do not use [] if you really want UTF-8.
> This generates not only a variant of UTF-8, but also prepends a
> length.

Caught me! That's exactly what I was doing. In another experiment I was
using a JSP implementation that also demonstrated improper translation of
surrogates in a String when it put the String in a serialized HTTP response.
So many caveats.


This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:02 EDT