Solved

tomcat problem

Posted on 2004-08-16
13
199 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse problems view not showing all the time 4 88
Using Tomcat as raspberry pi java app server 13 166
maven webservice example issue 2 134
struts spring hibernate example 12 122
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

778 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