tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: UTF-8 POST request results in corrupted data
Date Mon, 06 Oct 2008 23:11:59 GMT
Before reading the POST body - you should first be doing this:
request.setCharacterEncoding("UTF-8")


-Tim

André-John Mas wrote:
> Hi,
> 
> I have opened issue 45957, for an issue that has bothered me for a while:
> 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45957
> 
> To resume:
> 
> Currently in Tomcat 5 if a request is received containing UTF-8
> content then any accents or non-Roman characters are corrupted, since
> there is an assumption
> the POST request is ISO-8895-1 (latin1). For example 'é' becomes 'Ã(c)'
> 
> Has anyone looked into this as part of a separate task, otherwise I
> would be willing to see what could be done.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message