my dog learned polymorphism
The moose likes Struts and the fly likes struts and encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and encoding" Watch "struts and encoding" New topic

struts and encoding

ertan eyimaya

Joined: Feb 16, 2005
Posts: 14

In my application I have 2 resource files: english) and 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:
subject: struts and encoding
jQuery in Action, 3rd edition