<?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>水草树 &#187; UTF-8</title>
	<atom:link href="http://mifunny.info/tag/utf-8/feed" rel="self" type="application/rss+xml" />
	<link>http://mifunny.info</link>
	<description>走走停停看看，恍然大悟。</description>
	<lastBuildDate>Sat, 27 Aug 2011 18:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>解决json乱码</title>
		<link>http://mifunny.info/to-solve-garbled-json-277.html</link>
		<comments>http://mifunny.info/to-solve-garbled-json-277.html#comments</comments>
		<pubDate>Mon, 24 Aug 2009 13:34:20 +0000</pubDate>
		<dc:creator>LD</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[GB2312]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[UTF-8]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://mifunny.info/to-solve-garbled-json-277.html</guid>
		<description><![CDATA[今天写ajax时，本来执行好好的程序，碰到中文昵称的用户就会乱码. 可洗。。。 客席 偶自己测试某有问题？ 然后把生成json的东东换成 PHP自己的json_encode()函数， 还是不行. 中文变成null？ 不知怎么想起调用淘宝的api时，需要使用 header(&#8220;Content-Type:text/html;charset=UTF-8&#8243;); 霎时开朗！公司里除了偶都是用gb2312的，数据库用拉丁文，唉~~~ 加上 header(&#8220;Content-Type:text/html;charset=GB2312&#8243;); 问题解决！]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em;">今天写ajax时，本来执行好好的程序，碰到中文昵称的用户就会乱码. 可洗。。。 客席 偶自己测试某有问题？ 然后把生成json的东东换成 PHP自己的json_encode()函数， 还是不行. 中文变成null？ </p>
<p style="text-indent: 2em;">不知怎么想起调用淘宝的api时，需要使用 <em>header(&#8220;Content-Type:text/html;charset=UTF-8&#8243;);</em>  霎时开朗！公司里除了偶都是用gb2312的，数据库用拉丁文，唉~~~  加上 <em> header(&#8220;Content-Type:text/html;charset=GB2312&#8243;);</em>  问题解决！</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=1cc5f69d-10a5-8c52-9291-b1623c79245d" /></div>
]]></content:encoded>
			<wfw:commentRss>http://mifunny.info/to-solve-garbled-json-277.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

