Hi Manos, Lukasz,
and thanks for the replies. Setting the URIEncoding="UTF-8" in the
server.xml didn't do the trick for me, but so did an UTF8Filter in the
web.xml.
Best regards,
Ulf
On Mon, Mar 15, 2010 at 11:20 AM, Manos Batsis
wrote:
> Ulf Liedén wrote:
>
>> when my struts application receiv
Ulf Liedén wrote:
when my struts application receives form entries containing french character
(i.e. é è) they are converted to something else, like é è.
This has probably something to do with how the request is encoded. I've
tried to add
ServletActionContext.getRequest().setCharacterEncoding
2010/3/15 Ulf Liedén :
> to the JSP, but this doesn't help. Any suggestions?
Add encoding filter to web.xml
Regards
--
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl
-
To unsubscribe, e-mail: us
Hi all,
when my struts application receives form entries containing french character
(i.e. é è) they are converted to something else, like é è.
This has probably something to do with how the request is encoded. I've
tried to add
ServletActionContext.getRequest().setCharacterEncoding("UTF-8");
String query = "insert into TEST (test) values ('" + text + "')";
boolean result = statement.execute( query ) ;
}
catch(SQLException e)
{
e.printStackTrace();
}
finally //ensure statement is closed properly
{
try
{
before setting in in the formBean to avoid that database encoding
isn't utf-8 but it also didn't work !!!
any other solutions i missed ??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
wessam wrote:
i'm using struts 1.1, oracle 10g environment
i'm facing a problem that i can't save special characters as "ẻ, €" from the
page to database correctly though i used all the possible ways to set the
encoding to utf-8
> [...]
the point is the the characters reaches the action class
i did add response.setCharacterEncoding(encoding), in EncodingFilter class
but still output corrupted characters in the jsp
:(
i really need to solve this problem as soon as possible .. any help please ?
--
View this message in context:
http://www.nabble.com/struts-request-encoding-to-utf-8
try :
request.setCharacterEncoding(encoding);
response.setCharacterEncoding(encoding);
filterChain.doFilter(request, response);
r^
S pozdravom Robert Slama
SpiritLine s.r.o.
Bernolakova ul. 1A
901 01 Malacky
[EMAIL PROTECTED]
gsm: +421 905 122 841
tel: +421 34 778 20 88
viewed corrupted in the page
any help please??
--
View this message in context:
http://www.nabble.com/struts-request-encoding-to-utf-8-problem-tp15041079p15041079.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, all.
I thought about guessing the incoming data's encoding.
How about having a hidden input tag with a default value provided by the server.
When this value comes back, the server could guess the encoding used by looking at the
bytes of this parameter.
I'd somehow like to see this solved tr
11 matches
Mail list logo