This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts and encoding

 
ertan eyimaya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic