Solved

tomcat problem

Posted on 2004-08-16
13
198 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

19 Experts available now in Live!

Get 1:1 Help Now