tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kent Degrano" <KentAlred.Degr...@asia.bigfoot.com>
Subject RE: UTF-8 characters
Date Tue, 04 Mar 2003 09:58:30 GMT
try this code, Dave.
String str = new String(request.getParameter("key").getBytes("ISO-8859-1"), "UTF-8");



-----Original Message-----
From: Oxley, David [mailto:David.Oxley@workplace-systems.plc.uk]
Sent: Tuesday, March 04, 2003 5:30 PM
To: 'tomcat-dev@jakarta.apache.org'
Subject: UTF-8 characters


When a response to the browser is in UTF-8 encoding form responses from said
page are giving UTF-8 characters when req.getParameter is called. i.e.
instead of getting é, I get the UTF-8 encoding é returned to our servlet.
Surely the getParameter method should return é as it does with other
encodings. Is this a bug?

Dave.


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003
 

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


Mime
View raw message