Display Chinese (Big 5) by Apache V 2.0.40
Dear all :
I use the web server : Apache V 2.0.40 I upload a page with chinese (Big5) web page to the server. But Whenever I load the page, I read the text wrong code. I need to change the code from ISO to Chinese (Big 5) in the IE. It is annoying ! How do I need to config the server so as to display the web page with corred code ? In fact, I have this sentence in my HTML : <meta http-equiv="Content-Type" content="text/html; charset=big5"> So pls help ! THank a lot !! Terry |
Does your web page have a DOCTYPE tag that uses one of the strict types, like this?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" If you want to verify what content-type your web server is declaring the page to be, this command will show you the http header (fill in the url, of course). Switch -S (capital S) outputs the http header. Switch -nd avoids making directories. Switch -O/dev/null (capital O) discards the page. Code:
wget -S -nd -O/dev/null http://... |
Thanks your very much.
I think it is not about my broswer I use IE or Firefox / Mozilla, he problem is still exit This is the link of my testing page : www.mte.com.hk/test.htm CODE : <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=big5"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p><b><font face="Arial, Helvetica, sans-serif">English Testing : ABC</font></b></p> <p><font face="Arial, Helvetica, sans-serif"><b>Chinese Testing (ocde : Big 5): <font size="5">您好, 大家好金</font></b></font></p> </body> </html> <html></html> <html></html> |
Your website is delivered with this in the http header. Since the http header is authoritative the meta tag is ignored.
Code:
Content-Type: text/html; charset=ISO-8859-1
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Refresh" content="0; URL=/test.html.big5"/> </head> <body> </body> </html>[/HTML] The disadvantage to this technique is that once someone gets to the page, they are stuck. The browser 'back' button will take them to the redirect page which immediately takes them forward again. This is frustrating and irritating to your viewers. The other (probably better) alternative it to modify /etc/httpd/conf/httpd.conf. I'm not as confident, but it seems like you should be able to uncomment and modify this line: #AddDefaultCharset ISO-8859-1 to this AddDefaultCharset Big5 |
Dear KenJackson
It works ! Thank you very much !! Terry |
All times are GMT -5. The time now is 02:16 PM. |