users@glassfish.java.net

Re: character encoding

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 May 2010 17:32:30 PDT

Hallo!

No not at all actually. I have used this since the days from Dreamweaver i think and it is only now i have seen that i need to change this. And i think UTF-8 is the way to go here....

Unicode and Java seems to work perfect together as well so this is what i am looking for. I am using tags when i am inserting text from a properties file into a JSP page, see below here for more info;

home.header1=Welcome to Neptune Diving Adventure
is in the text file and
<fmt:message key="home.header1" />
is in the jsp file.

This is the small problem i have is how to save all these files in UTF-8 instead ISO in GlassFish? Most of it is already set to ISO-8859-1 or MacRoman, Inherited from container..

So i wonder if i have to change somewhere in the program, GlassFish or if it is ok to only change in the source code? Everything have to go from iso-8859-1 to UTF-8 instead.
[Message sent by forum member 'torleif67']

http://forums.java.net/jive/thread.jspa?messageID=403537