I haven't looked at this in my application yet (but i probably should :/), but the struts.properties default config has this ...

### This can be used to set your default locale and encoding scheme
# struts.locale=en_US
struts.i18n.encoding=UTF-8

I would assume that means that struts2 should be trying to set the encoding on incoming request objects to UTF-8 or whatever other value you may put in there. It's possible that if something else in your application touches the request before struts, like a filter for example, then that may be disrupting things.

What you are doing in your jsps is correct, but won't solve your problem. Setting the content type in your jsp is just for identifying to the browser what language the response is in.

http://struts.apache.org/2.x/docs/strutsproperties.html

-- Allen


Cristian Lucero wrote:
Hi,
or good put this meta in head section
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta>

On 5/3/07, piloupy GOTTAPIL <[EMAIL PROTECTED]> wrote:

Hi,

I've accidentally found a solution. I must put the directive on the
top of my pages :

<%@ page contentType="text/html; charset=ISO-8859-15" %>

because I've put previously :

<%@ page contentType="text/html; charset=UTF-8" %>

The result of my little trace gives me :

Default Charset : windows-1252
é : 2

I don't really understand why but... it works ^_^;

I'm still interested in knowing the reason, if you have the answer :)

Thanks,

piloupy

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





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

Reply via email to