hi,
Thanks for your advises but it still doesn't work. 1. UNIX: LOCALE=... I try to change the LC_CTYPE to utf_8 but it doesn't change anything. >>>2. For Sun JVM, this is -Dfile.encoding option (I might be wrong though...) 2) I try to change system settings but it"s the same thing, i also try to change the default encoding under tomcat 4.0 but i only find many users with the same request without any response. >>>Also, you have third option - it was here on the list recently - you need to set encoding of the request object before invoking action (setCharacterEncoding method). 3) Ok but i'm not using a getparameter request into a xsp or a java source, i'm using the "<map:action name="db-authenticator" process which works automatically from a form. (check data from a table and hold a session if ok). <parameters-descriptor> <parameter name="login" type="string" nullable="yes" default=""/> <parameter name="id_rus" type="long" nullable="no"/> <parameter name="password" type="string" nullable="yes" default=""/> </parameters-descriptor> Today thousands Japanese people can't enter a login and password in Kanji code (UTf-8) on our web site, the utf-8 record is input in the postgres database without any problem but the form-validator don't let them to connect, it doesn't recognize no iso data. 4) I try to undestand a patch regarding a form enhancement (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5593) but i'not so expert to change directly the java source of cocoon. I think many people should have the same problem, the main interrest of cocoon is managing multi-languages pages. I hope someone will send me information, it becomes urgent. Thank you very much !! Patrick > From: Montier Patrick [mailto:[EMAIL PROTECTED]] > > Thank you for the response but how to change the encoding of the servlet > container ? > that is what i want to do ! Two options: 1. UNIX: LOCALE=... Win: Control Panel - Regional Options - Locale 2. For Sun JVM, this is -Dfile.encoding option (I might be wrong though...) Also, you have third option - it was here on the list recently - you need to set encoding of the request object before invoking action (setCharacterEncoding method). Vadim > > Best regards > > Patrick > > >>IIRC, form validator works on encoding of the servlet container. You > >>>have two options: > >>1. Patch form validator > >>2. Change encoding of the servlet container > > > > > > > Hi, > > Patrick, > > > I can't resolve my problem : i try to make the form-validation works > with > > utf-8 data, it only works with Iso-???? > > > > In my sitemap.xmap, i try the form-encoding as described in an email > but > > it's still the same, when login or password input is in Utf-8 > caracters, the > > form-validator reject. > > > > > > <map:match pattern="asp*/*/do-login"> > > <!-- first validate whether submitted values are ok --> > > <map:act type="form-validator"> > > <map:parameter name="descriptor" > > value="context://test/descriptors/params.xml"/> > > <map:parameter name="validate" value="login,password" > > form-encoding="UTF-8"/> > > This (form-encoding attribute) is *not* valid syntax for parameter. > Parameter element understands *only* name and value attributes. > > Vadim > > > <!-- now try to log in --> > > <map:act type="db-authenticator"> > > <map:parameter name="descriptor" > > value="context://test/descriptors/auth.xml"/> > > <!-- now go to protected area --> > > <map:redirect-to uri="login_ok.htm"/> > > </map:act> > > </map:act> > > <!-- something was wrong, try it again --> > > <map:redirect-to uri="login_nok.htm"/> > > </map:match> > > > > Any idea ? > > > > Thanks > > > > Patrick --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>