Hello,

I have question about Encoding in my application.

I have all my JSPs with the following header:

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

But I was not able to pass non-western characters through Struts. 

I tried to also add 

<% request.setCharacterEncoding("UTF-8"); %>

and

<fmt:requestEncoding value="UTF-8" /> 

and non of them worked... 

Then, I added httpServletRequest.setCharacterEncoding("UTF-8") to my
reset() method in my form bean, and IT WORKED!!?? The non-western
characters went through Struts, and showed correctly on my forward
pages, and even in my database.

I really don't understand what's happening.. and if I need to add it,
why I didn't add it to my Actions also?? And why the above tags didn't
also worked?

Thanks in advance.. I appreciate your answers.. 

- 
Rabih






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

Reply via email to