harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib] Charset.toString() compatibility to aid poor code?
Date Thu, 23 Sep 2010 15:37:25 GMT
+1

On 23/Sep/2010 08:38, Mark Hindess wrote:
> 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.
> 
> Regards,
>  Mark.
> 
>   
> 
> 
> 

Mime
View raw message