<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DiaHosting官方博客 &#187; apache中文乱码</title>
	<atom:link href="http://blog.diahosting.com/tag/apache%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.diahosting.com</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 09:39:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何解决KLOXO/lxadmin使用Apache服务器中文乱码的问题</title>
		<link>http://blog.diahosting.com/kloxo/apache-charset-gbk/</link>
		<comments>http://blog.diahosting.com/kloxo/apache-charset-gbk/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 03:07:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Kloxo教程]]></category>
		<category><![CDATA[apache中文乱码]]></category>
		<category><![CDATA[DiaVPS]]></category>
		<category><![CDATA[lxadmin]]></category>

		<guid isPermaLink="false">http://blog.diavps.cn/?p=9</guid>
		<description><![CDATA[KLOXO/lxadmin中，如果web服务器选择apache的话，由于apache的缺省编码是UTF-8，而国内部分程序默认编码是GBK或GB2313，那么部分程序会出现中文乱码的问题。
在apache的httpd.conf里，有默认编码的设置。
首先用SSH登陆VPS，修改httpd.conf文件
cd /etc/httpd/conf/
vi httpd.conf

查找：AddDefaultCharset
把：AddDefaultCharset UTF8
改为：AddDefaultCharset OFF
这样的话，打开页面的时候就会按照网页的编码设置来打开网页。
输入以下命令重启Apache
/etc/init.d/httpd restart
 

 
 
 
 
 

]]></description>
			<content:encoded><![CDATA[<p>KLOXO/lxadmin中，如果web服务器选择apache的话，由于apache的缺省编码是UTF-8，而国内部分程序默认编码是GBK或GB2313，那么部分程序会出现中文乱码的问题。</p>
<p>在apache的httpd.conf里，有默认编码的设置。</p>
<p>首先用SSH登陆VPS，修改httpd.conf文件</p>
<p><span style="font-family: Courier New;">cd /etc/httpd/conf/<br />
vi httpd.conf<br />
</span></p>
<p><span style="font-family: Courier New;"><span style="font-family: Courier New;">查找：AddDefaultCharset<br />
把：AddDefaultCharset UTF8<br />
改为：AddDefaultCharset OFF</span></span></p>
<p><span style="font-family: Courier New;"><span style="font-family: Courier New;">这样的话，打开页面的时候就会按照网页的编码设置来打开网页。</span></span></p>
<div><span style="font-family: Courier New;"><span style="font-family: Courier New;">输入以下命令重启Apache</span></span></div>
<div><span style="font-family: Courier New;"><span style="font-family: Courier New;">/etc/init.d/httpd restart</span></span></div>
<p><span style="font-family: Courier New;"><span style="font-family: Courier New;"> </p>
<p></span></span></p>
<p><span style="font-family: Courier New;"> </span></p>
<div><span style="font-family: Courier New;"><span style="font-family: Courier New;"> </span></span></div>
<p> </p>
<div><span style="font-family: Courier New;"><span style="font-family: Courier New;"> </span></span></div>
<p><span style="font-family: Courier New;"><span style="font-family: Courier New;"> </p>
<p></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.diahosting.com/kloxo/apache-charset-gbk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

