• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Internationlizing JSPs

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been working on internationalizing my website.

I am able to get it to work it work by pulling the UTF-8 formatted properties from a resource bundle. The problem is that I need to manually change the browsers encoding from ISO8859-1 to UTF-8. It then displays the Japanese characters corretly.

When I add the following line to the begining of my JSP it then correctly sends the content-type of UTF-8 and the browser recognizes the file as UTF-8.

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>

However, the data then comes out garabled (i.e. probably unencoded).

I am using Tomcat 5.5 and the JSPs are stored as UTF-8 files.

Any help would be appreciated.

Thanks,
Bill
 
I just had the craziest dream. This tiny ad was in it.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic