Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

i18n fun with jstl. Includes a war file.  RSS feed

 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am pretty much out of ideas on what is wrong. Here is the i18n issue -

I have a resource bundle, all of the files are in their native encodings. If I drop the native file into my web browser, I see the proper international characters/symbols.

I have a simple jsp, which uses the jstl fmt tag. When I run it, I get the wrong characters on the output page. The funny thing is, the browser identifies the character encoding properly, just like when I dropped the original file.

I don't know how to attach a file here, but I'll provide a link to a super simple war file.

myjstl.war

You will need to have the Asian fonts installed as well as Russian to look at the files.

Why aren't the letters showing up properly in the jsp? I tried encoding the files into utf-8, but that didn't do anything. Is there a Tomcat setting I need to look at or maybe something in my web.xml file?

Regards,
Aaron R>
[ May 21, 2004: Message edited by: Aaron Roberts ]
 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did another test. I copied the properties files from the resource bundle into the root of the webapp. If I view the page via tomcat, directly requesting the entire file, it works. This is really baffling me. What is going on with the fmt tag that 'goofs' things up?

Any ideas?

Regards,
Aaron R>
 
Aaron Roberts
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this super boring and that's why no ones responding? Can anyone point me to a reference they've used at least?

Regards,
Aaron R>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!