character encoding issues

来源:互联网 发布:信达通炒股软件 编辑:程序博客网 时间:2024/05/06 08:34

Developers are often confused with encoding in linux. I gave some experiences to handle some errors.

 

1. If you want to surf chinese web site in linux box, you need to install chinese fonts library. You can use the following command to install fonts if your linux is centos (non-enterprise)

 

yum install fonts-chinese*

 

2. My linux box has installed chinese fonts lib. When I browse a web application installed in this box, it can not display normally. 

 

Maybe, your app uses GBK encoding, please choose a GBK encoding in your browser.  Unfortunately, you will find it very

difficult to change default encoding of browser (IE, MyIE). I google the issue, and foud the solution in the url: http://blog.chinaunix.net/u/553/showart_574197.html  PHP与MySQL开发中的字符编码问题

 

I foud it very cool to add "AddDefaultCharset GB2312" to your virtual host config in httpd.conf file

原创粉丝点击