This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes struts and encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "struts and encoding" Watch "struts and encoding" New topic
Author

struts and encoding

ertan eyimaya
Greenhorn

Joined: Feb 16, 2005
Posts: 13
Hi,

In my application I have 2 resource files: ApplicationResources.properties(for english) and ApplicationResources_tr.properties(for Turkish). All the titles, labels are read from these resources. But when I change the language of the Internet Explorer(Options-->languages) to Turkish(tr), Turkish characters are not shown. Everything is well when the language is English(en-us).

I did not set the encoding in pages(jsps, htmls) by using for example <%@ page contentType="text/html;charset=ISO-8859-9"%> because Struts choose resource file from Locale and I think it must set the encoding but does not. !!!

How can I solve the encoding for my struts application?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: struts and encoding
 
Similar Threads
Character Encoding
Resource Bundle in Chinese(Macau S.A.R)[zh-MO]
i18N problem
struts.properties struts.locale properties
reading foreign characters (say, multi-byte charcters, Japanese, Turkish, etc) from a file in java.