geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Petersson <>
Subject Re: JSP Charset problem.
Date Mon, 28 May 2007 09:48:52 GMT
Hi Giulio

I don't know if you are running G in a windows or unix system but in a 
unix system you can
try to add this information to a file in geronimo/bin. If you 
want to take a look at
what startup parameters are suported they are listed in

You can try add -Dfile.encoding=UTF-8 to JAVA_OPTS in the 
file. Somting like this:

JAVA_OPTS="-Dfile.encoding=UTF-8 -Djava.awt.headless=true 
-XX:MaxPermSize=128m -Xms128M -Xmx512M -server"


I think there are a similar solution for windows.
I hope this helps

Giulio Ferro wrote:
> Hash: SHA1
> Peter Petersson ha scritto:
>> Hi Giulio
>> If I understand you right  you have a working configuration when you are
>> starting and running the G server in a UTF-8 environment.
>> You can check the encoding settings used by Geronimo via the console 
>> JVM section.
>> To make sure the browser knows what encoding to expect  you can add the
>> following to the beginning of the JSP files
>> <?xml version="1.0" encoding="UTF-8"?>
>> and/or
>> <meta http-equiv="Content-Type" content="application/xhtml+xml;
>> charset=UTF-8" />
>> Encoding problem can be really tricky especially if the text sources
>> also are fetched from a database where double encoding can be a issue.
>> I hope this helps.
>> /Peter
> The problem is not the browser. All pages have the right request /
> response setter to the correct character set (UTF-8). As I said
> dynamic content from db is displayed correctly.
> The problem is JSP compilation.
> I have to find a way to tell geronimo to compile the jsp with the
> correct character set. By default it uses the character set of the
> user who is running geronimo, but I want it to use the character set
> I want (the -encoding switch of the javac compiler).
> Bye.
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with SUSE -
> nmibqxi4hMQzZOVNGi1T3FM=
> =m8Hh

View raw message