Solved

tomcat problem

Posted on 2004-08-16
13
200 Views
Last Modified: 2010-05-18
I have several HTML pages(NOT JSP page).
In the content of these pages is Chinese.
I can view the Chinese content when these pages store on my PC .
After that, I upload all these pages to my tomcat server.
Then,I cannot view the chinese content of my pages.
Therefore, I added the following the statement in each pages.

<meta http-equiv="Content-Type" content="text/html; charset=big5">

However, it does not anything.
So,Would you mind telling me how can I fix the problem?

In fact, I don't want to rename these *.html  files to *.jsp files.

thank you
0
Comment
Question by:cstsang
13 Comments
 
LVL 4

Expert Comment

by:illusionz70
ID: 11818487
i guess you must use gb encoding .. see if this link helps u ,

http://www.geocities.com/herong_yang/jsp/non_ascii.html
0
 
LVL 7

Author Comment

by:cstsang
ID: 11818534
However, My chinese content is BIG5 encoding.
Is it work?
0
 
LVL 4

Expert Comment

by:illusionz70
ID: 11818572
check your ie settings , you are using meta tags correctly
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Author Comment

by:cstsang
ID: 11818633
I think that doesn't my browser problem.
It is because, all my JSP page also have this meta tags, however, it does not display chinese correctly.
Luckly,I can solve this problem by adding the following statement to each jsp page:

 <%@page contentType="text/html;charset=big5"%>

0
 
LVL 7

Author Comment

by:cstsang
ID: 11818748
According to the following URL:

http://kitaj.no-ip.com/tdiary/20031203.html (japanese web site)

changing some setting in web.xml can solve the problem.
It works on my development server(WINXP),however,it cannot works on my demo server(RedLinux 9.0).

can you tell me why?
0
 
LVL 7

Author Comment

by:cstsang
ID: 11818901
Also, the tomcat version also is not the same.
My development server(WINXP) tomcat version is 4.1.29 , and my demo server(RedLinux 9.0) tomcat version 4.1.30.
0
 
LVL 4

Expert Comment

by:Oliver_Dornauf
ID: 11819132
Did you tried:
<%
   response.setContentType( "text/html;charset=big5");
% > 
in your jsp?



0
 
LVL 7

Author Comment

by:cstsang
ID: 11819410
Yes,
I mean all my jsp pages are OK.
However,ALL THE HTML PAGES ARE NOT OK.
0
 
LVL 3

Expert Comment

by:haobaba1
ID: 11819505
you may try adding this to the html headers:

<META HTTP-EQUIV="Content-language" CONTENT="zh">

It appears you really need to configure the webserver to return a content type of text/html;charset=big5 for html files. It appears that netscape is the only browser that honors <meta http-equiv="Content-Type" content="text/html; charset=big5">

alternatively you can try
<META HTTP-EQUIV="Content-language" CONTENT="zh-TW">
 as the language as well.
0
 
LVL 7

Author Comment

by:cstsang
ID: 11827117
Still doesn't work.
0
 
LVL 7

Author Comment

by:cstsang
ID: 11828105
I found the solution.
My demo server environment is that,the tomcat server is integrate with apache.
It works when I changed the default language setting of apache.
By the way, I thank for all of you effort.

Dear Modulator:
Would you help me to cancel this question?

thank you very much



0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12540743
PAQed with points refunded (50)

Computer101
EE Admin
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article was originally published on Monitis Blog, you can check it  here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sour…
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question