Hi Hans,
I'm not sure what your Maverick setup is like (e.g. jsp, domify etc) but I
found the same problem using Maverick in tandem with domify on Resin. All
the UTF-8 characters were being transformed. To fix this I placed the
following in the perform method of my base Controller:
public final String perform() throws Exception {
this.getCtx().getResponse().setContentType("text/html;charset=UTF-8");
...
Cheers,
Marcel
----- Original Message -----
From: "Hans Lund" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 3:32 AM
Subject: [Mav-user] request encoding
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]
-------------------------------------------------------
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]