Hi,

I have a big trouble with using different encoding than US-ASCII in my JSP.

What encoding should I use, if I want to make pages for european users? I
think the best is to use UTF-8, since it includes all character sets. I
tried to do this:

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

I am developing my JSP in NetBeans, so I set the source text encoding also
to UTF-8. In compiler options, I set the compiler encoding also to UTF-8.

I have no trouble with viewing the JSP page in the browser, the sorce text
is ok. But some of the dynamicaly generated output is wrong. E. g. I am
reading XML file in my JSP page and printing its contents to the page.
Although the XML is in UTF-8, the page contains wrong characters.

Similar output problems are with JDBC fetched data. I read some textual
cntent from MySQL database, but printing them to the JSP causes the same
problem, as with XML: national characters are substituted with question
marks (?) or squares.

I am using NetBeans 3.2 as IDE, Tomcat 3.2 as JSP server and Windows 2000
SP-2 as OS.

Did you encounter any problem like this? Thanks for any help.

Petr Tomasek, Prague, Czech Republic

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to