harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess" <mark.hind...@googlemail.com>
Subject [classlib] Charset.toString() compatibility to aid poor code?
Date Thu, 23 Sep 2010 07:38:58 GMT

I've just seen some poor code for a simple HTTP server doing:

  "Content-Type: text/html; charset=" + charset

which on the RI gives the expected:

  Content-Type: text/html; charset=ISO-8859-1

but on Harmony gives:

  Content-Type: text/html; charset=Charset[ISO-8859-1]

which is then incorrect/unhelpful at the HTTP client end.

Perhaps we should just make Charset.toString() return just
Charset.canonicalName without the prefix?

If there are no objections then I'll change this later.



View raw message