m
To: user@struts.apache.org
Subject: Re: Struts and encoding ISO-8859-1
You shouldn't technically need Struts 2.1.7 to be able to use UTF-8. If
you want to stick with 2.1.6, there are two options: either you use
useBodyEncodingForURI="true" in Tomcat's server.xml, or you explici
pache.org
> Subject: Re: Struts and encoding ISO-8859-1
>
> You shouldn't technically need Struts 2.1.7 to be able to use UTF-8. If
> you want to stick with 2.1.6, there are two options: either you use
> useBodyEncodingForURI="true" in Tomcat's server.xml, or you
working? Do you have any prescription for getting it to work with UTF-8, or is
it the same as you already explained below?. I am not paranoid aout saving a
few bytes :)
Thanks again!
Regards,
Niklas
----------------
Date: Sun, 26 Apr 2009 23:36:13 +0200
From: voetsjo
:36:13 +0200
> From: voetsjo...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Struts and encoding ISO-8859-1
>
> Well, ISO-8859-1 and UTF-8 differ in the fact that ISO-8859-1 is a
> single-byte encoding and can only encode 256 characters (albeit
> carefully chosen), while UTF-8
lot of information is missing (at least in
my web-client...). But I think your answer helps me so I skip completing
that missing information now.
Thanks again!
Regards,
Niklas
Date: Sun, 26 Apr 2009 21:52:23 +0200
From: voetsjo...@gmail.com
To: user@stru
is missing (at least in
my web-client...). But I think your answer helps me so I skip completing
that missing information now.
Thanks again!
Regards,
Niklas
> Date: Sun, 26 Apr 2009 21:52:23 +0200
> From: voetsjo...@gmail.com
> To: user@stru
What exactly is giving you trouble? Are your HTTP parameters not
properly received? Does your DB data get garbled when you output it?
I've recently had problems with ISO-8859-1 and Struts 2 as well, and
there are some things you need to be aware of.
It turns out that by default Tomcat uses ISO
hi friends,
I add
(request.setCharacterEncoding("UTF-8"); to my action before reading parameter from it , also i add two difinition on my jsp page
<%request.setcharacterEncoding("UTF-8");%>
and which both of them set content and encoding of my jsp pages to utf-8
but i istill could not use my pa
Are you sending the form using POST method?
Do you set request encoding in your action before reading the parameter
value? - (request.setCharacterEncoding("UTF-8");
Do you have the content type of jsp set to UTF-8? - <%@ page
contentType="text/html;charset=UTF-8" language="java" %>
Radek
> -O
9 matches
Mail list logo