> From: Yigal Lazarev [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 6.0.14 and UTF-8 POST form problem
> 
> * * Converting from ISO to UTF: *
> String subj = "קורות חיים של "+new
> String(((String)nameTextField.getValue()).
> getBytes("ISO-8859-1"), "UTF-8");

I'm confused: if the text is already in UTF-8, why are you taking an apparent 
text field (already a String, perhaps?), doing a getValue() - a NOP for a 
String, then casting it to a String (another NOP), converting the String to a 
set of Latin-1 (or Hebrew) bytes, and then lying to a String constructor by 
telling it the byte array is in UTF-8?

Even if nameTextField is not a String, there's an awful lot of conflicting 
machinations going on here.

Perhaps I'm missing something...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to