I assume you mean you input japanese character but the form bean gets a messed 
result. If you have a multi-part/formdata encoding for form (used for file 
uploads) keep in ming there are problem detecting at the character encoding 
used by submitter. Browser is supposed to send the data in the same encoding 
as web page, but fileupload utility  seems to be unable to catch the encoding 
used by web browser and the form validation bean get datas as if entered 
using iso-8859-1 (which is problematic when the web browser did in fact send 
an utf-8 stream).

To soluce this, we always put this in multi part forms:
<html:form action="/someAction.do" enctype="multipart/form-data" 
acceptCharset="ISO-8859-1">

This way we are sure the encoding used by borwser is the same as the one 
fileupload tool defaults to.

Le Vendredi 15 Avril 2005 07:19, Pham Anh Tuan a Ãcrit :
> Hi all,
>
> I got a problem, again :)
>
> when I input special characters like japanese or vietnamese character into
> <html:text>, <html:text> automatically encodes that characters Decimal NCRs
> before mapping to bean property.
>
> Example 1:
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> or
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ...
> <html:text property="myPro"/>
> I input japanese characters: ããã
> Before it is mapped to bean property myPro: &#12431;&#12383;&#12375;
>
> Example 2:
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> or
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ...
> <html:text property="myPro"/>
> I input vietnamese characters: Tái Qua
> Before it is mapped to bean property myPro: T?i Qua;
>
> So, I wonder that does <html:text> encodes special character automatically
> when it find some character like japanese or vietnamese?
>
> plz help me!
>
> Pham

-- 
David Delbecq
Royal Meteorological Institute of Belgium

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to