Re: Foreign chars (eg russian) not displaying correctly after being serialized!!! PLEASE HELP!!!!

Dudley Butt <[email protected]> Sun, 4 Sep 2005 22:04:22 +0200
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi all, 

I firstly wish to apologize for jumping to conslusions about CX's abilities. 
Berny, CX is great and does the job nicely, thanx and sorry for my previous 
post.

The problem I was having with i8n chars lay with struts. To fix the issue, 
just do the following:

 It's solved by adding the following code fragment to the begining of 
reset(,) and validate(,) methods in ActionForm:
_______________________________________
try {
request.setCharacterEncoding("UTF-8");
}
catch (UnsupportedEncodingException ex) {
}

You must implement both methods, even if its with only this line of code!

Regards
Dudley

On 9/2/05, Dudley Butt <[email protected]> wrote:
> 
> Hi,
> 
> I was under the impression that cx was the solution for a localization. 
> However, when we submit foreign chars in a form, it serializes the foreign 
> chars and displays them totally incorrectly using stuff like squares etc 
> instead of the true foreign chars. We are going live on Sunday and seriously 
> need a solution fast!!!! WHY DOES CX NOT SERIALIZE IDN CHARS CORRECTLY IF 
> ITS ADVERTISING ITSELF AS A SOLUTION FOR LOCALIZATION??????
>