Hi

Today I resolved a problem with the enconding charset and I wish to
share my experience to you.

I have an Open Blue Dragon installed with Tomcat 6.0 on Ubuntu 8.04.

The problem was that I can't view the latin characters like  "á" or
"ñ"  on any .cfm page.

I changed the character encoding on the bluedragon.xml file to
ISO-8859-1 without success.

If I called getPageContext().getResponse().getCharacterEncoding() I
received "ISO-8859-1"

But I always saw "?"  signs instead of the required characters.

So, I thinked that the problem was related with a Java issue (because
I already had a similar fight in my Eclipse installation) :)

Basically the solution was to add a parameter into the java call to
the Tomcat server.

Just edit the /etc/init.d/tomcat6.0 file and put

 CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=ISO8859_1"

before the following lines

 # Define other required variables
 CATALINA_PID="$CATALINA_BASE/temp/$NAME.pid"

After this, just restart your Tomcat server :)

I read that this kind of changes can also be done in another file call
"setenv.sh". If someone know about that, please tell me.

Dante



--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to