Tomcat 4.1 and Content-Type: charset header problem.

S

Son KwonNam

On Tomcat 4.1.29.
JSP has no problem.
When I browse *.jsp files, the Content-Type header's charset value is
correct that I exactly specify in <%@ page contentType %>.

But *.html files show as ISO-8859-1 always.
Eventhough I put
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

I checked the http header, and got the following.

HTTP/1.1 200 OK
ETag: W/"4087-1075863720255"
Last-Modified: Wed, 04 Feb 2004 03:02:00 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 4087
Date: Wed, 04 Feb 2004 05:04:40 GMT
Server: Apache-Coyote/1.1
Connection: close

<html>
<head>
<title>blablabla</title>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
</head>

As you see Content-Type header's charse value is ISO-8859-1.
How can I set charset encoding for Tomcat?

Thanks for reading.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top