<?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>Big toy for boy! &#187; utf-8</title>
	<atom:link href="http://bigtoy4boy.com/blog/tag/utf-8/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigtoy4boy.com/blog</link>
	<description>一个有关一些个人兴趣爱好的博客</description>
	<lastBuildDate>Wed, 04 Aug 2010 08:47:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Flash中URLLoader UTF-8内容注意事项</title>
		<link>http://bigtoy4boy.com/blog/2008/11/solved-flash-urlloader-utf8-problem/</link>
		<comments>http://bigtoy4boy.com/blog/2008/11/solved-flash-urlloader-utf8-problem/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 00:43:08 +0000</pubDate>
		<dc:creator>羽高</dc:creator>
				<category><![CDATA[互联网技术]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.bigtoy4boy.com/blog/?p=118</guid>
		<description><![CDATA[很久没有这么仔细的编写一个程序了，昨天下午出了点问题，在浏览器看着好好的内容使用Flash调用会出现问题，后来curl -i http://www.bigtoy4boy.com/测试，发现了问题。 首先apache没有配置默认的字符集，我如果在php里面随意的输出几行的话，apache是不会在header上加上“Content-Type: text/html;charset=UTF-8”的。为此在apache配置文件中加入配置：AddDefaultCharset UTF-8，我加在httpd.conf文件中DefaultType text/plain这行下面了。 其次，输出的内容在正式内容前会有乱码，这是因为我所有的程序、模板都是用UTF-8格式保存并且文件头有unicode标志“0xEF”，修改文本编辑器去掉这个头，一切就恢复正常了。 标准的浏览器会兼容这个错误，过滤一些前置字符，但是用程序使用http协议通讯的时候就会有问题，flash的URLRequest也是这样。网上搜索了一下基本上没有人记录、描述这个问题，为此留下一篇文章。万一被你搜中了，要留言给我哦！]]></description>
			<content:encoded><![CDATA[<p>很久没有这么仔细的编写一个程序了，昨天下午出了点问题，在浏览器看着好好的内容使用Flash调用会出现问题，后来curl -i http://www.bigtoy4boy.com/测试，发现了问题。</p>
<p>首先apache没有配置默认的字符集，我如果在php里面随意的输出几行的话，apache是不会在header上加上“Content-Type: text/html;<span style="color: #ff0000;">charset=UTF-8</span>”的。为此在apache配置文件中加入配置：AddDefaultCharset UTF-8，我加在httpd.conf文件中DefaultType text/plain这行下面了。</p>
<p>其次，输出的内容在正式内容前会有乱码，这是因为我所有的程序、模板都是用UTF-8格式保存并且文件头有unicode标志“0xEF”，修改文本编辑器去掉这个头，一切就恢复正常了。</p>
<p>标准的浏览器会兼容这个错误，过滤一些前置字符，但是用程序使用http协议通讯的时候就会有问题，flash的URLRequest也是这样。网上搜索了一下基本上没有人记录、描述这个问题，为此留下一篇文章。万一被你搜中了，要留言给我哦！</p>
]]></content:encoded>
			<wfw:commentRss>http://bigtoy4boy.com/blog/2008/11/solved-flash-urlloader-utf8-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
