Ngo Hoang Minh

Greenhorn
+ Follow
since Apr 26, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ngo Hoang Minh

Dear all,

I used tiles of Struts 1.1 and WebSphere. How I force encoding of browser to UTF-8 ? I used an filter to set content type of response to "text/html; charset=UTF-8" - response.setContentType("text/html; charset=UTF-8")
I also set character encoding of request to "UTF-8" - request.setCharacterEncoding("UTF-8") in this filter
I also set <meta http-equiv="content-type" content="text/html; charset=utf-8" /> at template JSP file

but when I run my application, the encoding of web browser (both IE and Fire Fox) did not force to UTF-8

Please help me

Best regards,
17 years ago
Dear Struts experts,

I develop an J2EE application which support Japanese, Chinese and Vietnamese characters. I used Struts 1.1, WebSphere Studio Application Developer Integration Edition(WSAD IE) 5.1.1 and WebSphere Application Server(WAS) 5.1

I have a problem with display the value of inputted text. The application has several HTML forms which allow the user to input Japanese, Chinese or Vietnamese characters. if there is a validation error, the application displays the inputted HTML form with an error message, at this error page the inputted String of Japanese, Chinese or Vietnamese not display correctly as what the user inputted,

The same problem with editing function. The Japanese, Chinese or Vietnamese value of text field changed format/encoding

I used Struts taglib such as <html:text>, <bean:write>

I searched on Internet and applied some suggestions such as encoding filter but I did not successfully

I hope to receive your advices, thank you very much!
17 years ago