JSP Internationalization



I am trying to setup a test for internationalizing JSP pages in
Japanese. I have some sample strings that I converted in resource
files which I ran through native to ascii.

When I run the pages, I do not see any Japanese characters. On the
screen I only see question marks. I tried hardcoding the unicode
encoded strings. I still get question marks. What am I missing.

The application is running on iplanet app server 6.5 and iplanet web
server 6.0.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)

Thanks for your input.

David

Here is the output
This is a test for Japanese: ??? ? ???

Here is the JSP source.
<%@ page import="java.util.ResourceBundle" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
This is a test for Japanese:
<%
ResourceBundle res = ResourceBundle.getBundle("MyResource");
%>
<%=res.getString("teststring"); %>
<%
tmp="\u6708"; //unicode encoded
%>
<%=tmp%>
<%
tmp="十二月";
%>
<%=tmp%>
</body>
</html>

.



Relevant Pages

  • Re: JSP Internationalization
    ... I have some sample strings that I converted in resource ... files which I ran through native to ascii. ... I do not see any Japanese characters. ...
    (comp.lang.java.programmer)
  • Re: JSP Internationalization
    ... I have some sample strings that I converted in resource ... I do not see any Japanese characters. ... I still get question marks. ... I post Japanese text on my blog, I use HTML escape entities, e.g. ...
    (comp.lang.java.programmer)