Solved

tomcat problem

Posted on 2004-08-16
13
196 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now