Chinese page not displayed properly in apache2

This is a discussion on Chinese page not displayed properly in apache2 within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi. I am running apache 2.0.47 on redhat 9. In my website, I have a page with chinese ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2003
Michael
 
Posts: n/a
Default Chinese page not displayed properly in apache2

Hi. I am running apache 2.0.47 on redhat 9. In my website, I have a
page with chinese characters. The page contains the meta tag:

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

which is suppose to instruct the client to automatically use big5
encoding but the characters still come out funny. I have to manually
go to View->Encoding and select Big5 to see characters properly.

So, I started to think that the problem probably lies with my
webserver and searching around the web, I found that others who
switched from apache 1.3 to apache 2.0 also has the same problem. I
went to my httpd.conf and edited the AddDefaultCharset:

AddDefaultCharset Big5

and restarted apache but that still doesn't work. Any ideas?

Cheers,
Michael.
  #2 (permalink)  
Old 10-22-2003
Andreas Prilop
 
Posts: n/a
Default Re: Chinese page not displayed properly in apache2

mk_lai@netfront.net (Michael) wrote:

> my website


Give URL!
  #3 (permalink)  
Old 10-24-2003
Alan J. Flavell
 
Posts: n/a
Default Re: Chinese page not displayed properly in apache2

On Tue, 20 Oct 2003, Michael wrote:

> <meta http-equiv="Content-Type" content="text/html; charset=big5">
>
> which is suppose to instruct the client to automatically use big5


Only if the server fails to specify an encoding.

> encoding but the characters still come out funny. I have to manually
> go to View->Encoding and select Big5 to see characters properly.


Bet'cha the server is defaulting to iso-8859-1

> So, I started to think that the problem probably lies with my
> webserver and searching around the web, I found that others who
> switched from apache 1.3 to apache 2.0 also has the same problem. I
> went to my httpd.conf and edited the AddDefaultCharset:


Either learn how to read your own HTTP headers, or give us the URL so
we can diagnose the situation for you. AddDefaultCharset does not
override other charset functions of Apache: it only provides a default
where no other means have determined the charset.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0