UTF-8
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   charles_so
Posted On:   Monday, June 17, 2002 09:27 PM

Database is storing data using UTF-8. I am using Tomcat and Apache.

All dynamic content is presented using JSPs.

Should I set Tomcat, or Apache, or Tomcat & Apache so that browsers can display the UTF-8 characters?

Any information on how to set this up in both Tomcat and Apache?

Re: UTF-8

Posted By:   Anonymous  
Posted On:   Tuesday, June 25, 2002 07:37 AM

Hi,


I don't think you have to set anything up in Tomcat or Apache!

I had the same problem with UTF-8 data to be presented in JSP pages.

What I did is putting these two lines in each JSP pages:

<%@ page contentType="text/html"%>
This was needed to overwrite the default setting of the JSP specifications (I work with JSP specifications 1.1). The default setting is contentType="text/html; charset=iso-8859-1"



This HTML tag will force your browser to automatically switch the UTF-8 encoding


Hoping it can help you...

About | Sitemap | Contact