[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOM wrappers and UTF-8 encoding



Are you using Tomcat or JRun? There are many others as well. 

The jsp container takes the .jsp file and creates a java servlet from
it. It also compiles the created servlet into a .class file, which is
used to service the request. 

Different containers use different means to come to the same end. You
can usually supply parameters to the container, via xml or properties
files, to control certain aspects of HOW it runs. Much the same way you
can control the execution of a java .class file via command line
parameters or by programming your classes to read configuration
parameters from external files.

You need to check the docs/help files for the container that you are
using to find out if it's possible and how to do so. It might be
possible to set the encoding per class. Also check the javadocs api.
There might be a way to set encoding from within a class. Because a jsp
is really just another way to write a servlet, the entire java language
is available. Start with DataInputStream.readUTF().

Ed.