abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject Re: more fun with character encodings
Date Mon, 10 Sep 2007 18:32:18 GMT
On 9/8/07, James M Snell <jasnell@gmail.com> wrote:
> I just wanted to follow up with this.  If you think the title value is
> being converted to MacRoman at some point, try forcing it back to UTF-8
> just prior to setting the value in the abdera objects, e.g.

ok, i'll give this a try when i get a chance to cycle back to the bug.

interestingly enough, when i use this code to base64 encode the
string, after the client decodes it, the characters display properly.
you'd think i'd need to be using MacRoman to do the first byte
conversion...

            byte[] bytes = out.toString().getBytes("UTF-8");
            String value = new String(Base64.encodeBase64(bytes), "UTF-8");

Mime
View raw message