Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

tomcat problem

Posted on 2004-08-16
13
Medium Priority
?
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 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