struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Lea <>
Subject Re: problem with output character encoding using resource bundles
Date Mon, 31 Mar 2003 22:01:37 GMT
Kornilios Kourtis wrote:
> On Mon, Mar 31, 2003 at 03:55:16PM +0200, Gemes Tibor wrote:
>> ?rta:
>>>Also I forgot to write that when I tried the utf-8 encoding for the page
>>>I got some strange symbols (like questionmarks) 
>>>in the browser. I thought that it might be the browser's fault and so 
>>>I tried to view the page with a couple of browers but none workedd.

> yes I set the encoding of the page (iso-8859-7) 
> and I even tried with telnet and verified that the server 
> sends question marks

I have managed to get Japanese to work, but using UTF-8.  It should mean 
I can render a mixture of languages on my page.

I have this at the top of every page:

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

I can check that this is being set correctly in the browser with the 

Mozilla: Open View->Page Info and look at Encoding
IE: Open View->Encoding

I convert my file with the following ant task

<native2ascii encoding="UTF-8" src="${}" 
   <include name="**/*.properties"/>

This converts the file and puts it into the classes directory.
So I end up with lines like:


The final part is making sure I use a style sheet that specifies a 
Unicode font (eg can display any language).  The wrong font will display 
as ???.

Jason Lea
Phone/Fax: +64  3 381 2907
Mobile:    +64 21 040 2708
Address:   9a Tabart Street, Christchurch, New Zealand

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message