Hi

I'm having problems with request encoding. I have som formulars, using http GET method. The pages are in UTF-8, and when I submit the formular the non ascii charaters gets transformed into what seams to be double encodede utf-8. I my web.xml I'v set up the dispatcher:

<servlet>
       <servlet-name>dispatcher</servlet-name>
       <display-name>Maverick Dispatcher</display-name>
       <servlet-class>org.infohazard.maverick.Dispatcher</servlet-class>

   <init-param>
           <param-name>defaultRequestCharset</param-name>
           <param-value>UTF-8</param-value>
 </init-param>
.
.
.


which, as far as I know, should be the way to do. But this has no effect. ( it has no effect what so ever )


when I submit a value in a input field on the web page with the value of Bj�rn -> the internal java representation becomes Bjørn
IF i change the browsers encoding from utf-8 to iso-8859-1 and submit the same ( with the same defaultRequestCharset ) the java string is correct
anyone with a suggestion on what I might be doing wrong?


Hans




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn [INVALID FOOTER]

Reply via email to