RE: Java, UCS-2, and UTF

From: Mike Brown (mbrown@corp.webb.net)
Date: Thu May 11 2000 - 17:08:04 EDT


> Do not use [java.io.DataOutputStream] 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.

-Mike



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