<?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; amf</title>
	<atom:link href="http://julabs.me/blog/tags/amf/feed/" rel="self" type="application/rss+xml" />
	<link>http://julabs.me/blog</link>
	<description>想努力创造完美的东西，必须具备心灵的纯洁，同时富于宗教精神。</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:34:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>AMFPHP 1.9的中文问题</title>
		<link>http://julabs.me/blog/php/amfphp-chinese/</link>
		<comments>http://julabs.me/blog/php/amfphp-chinese/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 07:24:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[amf]]></category>

		<guid isPermaLink="false">http://julabs.me/blog/?p=9</guid>
		<description><![CDATA[AMFPHP 1.9里直接使用中文会在传递数据时发生乱码，这个问题在AMFPHP中的gateway.php文件就已经给出了解决方法。 见gateway.php文件中的注释： // Oriental languages (Chinese, japanese, korean): $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" ); $gateway->setCharsetHandler( "iconv", "big5", "big5" ); $gateway->setCharsetHandler( "iconv", "CP950", "CP950" ); $gateway->setCharsetHandler( "iconv", "Shift_JIS", "Shift_JIS" ); $gateway->setCharsetHandler( "iconv", "CP932", "CP932" ); $gateway->setCharsetHandler( "iconv", "CP949", "CP949" ); 也就是说你的文件是用什么格式编码的，就把gateway.php文件中的$gateway->setCharsetHandler( &#8230; <a href="http://julabs.me/blog/php/amfphp-chinese/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>AMFPHP 1.9里直接使用中文会在传递数据时发生乱码，这个问题在AMFPHP中的gateway.php文件就已经给出了解决方法。</p>
<p>见gateway.php文件中的注释：</p>
<pre><code class="php">// Oriental languages (Chinese, japanese, korean):
$gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" );
$gateway->setCharsetHandler( "iconv", "big5", "big5" );
$gateway->setCharsetHandler( "iconv", "CP950", "CP950" );
$gateway->setCharsetHandler( "iconv", "Shift_JIS", "Shift_JIS" );
$gateway->setCharsetHandler( "iconv", "CP932", "CP932" );
$gateway->setCharsetHandler( "iconv", "CP949", "CP949" );
</code></pre>
<p>也就是说你的文件是用什么格式编码的，就把gateway.php文件中的<code>$gateway->setCharsetHandler( "iconv", "big5", "big5" );</code>中的两个“big5”改成相对应的编码名称就可以了。而在中国，一般使用“utf-8”、“gb2312”和“big5”，我用“utf-8”，所以在gateway.php文件中找到<code>$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");</code>一行代码，把它改成<code>$gateway->setCharsetHandler("iconv", "UTF-8", "UTF-8");</code>就能正常传递中文数据了！</p>
]]></content:encoded>
			<wfw:commentRss>http://julabs.me/blog/php/amfphp-chinese/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

