try this code, Dave.
String str = new String(request.getParameter("key").getBytes("ISO-8859-1"), "UTF-8");



-----Original Message-----
From: Oxley, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 5:30 PM
To: '[EMAIL PROTECTED]'
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to