<?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; php</title>
	<atom:link href="http://magustest.com/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://magustest.com/blog</link>
	<description>关注软件测试，白盒测试，自动化测试，性能测试</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:59:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>解决SimpleTest输出中文测试结果报告乱码问题</title>
		<link>http://magustest.com/blog/php/simpletest-result-utf-8/</link>
		<comments>http://magustest.com/blog/php/simpletest-result-utf-8/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 07:27:12 +0000</pubDate>
		<dc:creator>magus</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://magustest.com/blog/?p=319</guid>
		<description><![CDATA[最近开始看SimpleTest，一个PHP下的单元测试框架，当然SimpleTest不单只能做单元测试，还能做自动化WEB测试。这个工具简单容易上手，不过就是遇到一个问题，生成的测试报告里面如果包含中文的话就乱码，网上搜了一下，解决办法如下： 找到SimpleTest目录下的reporter.php文件 查找到“function HtmlReporter($character_set = &#8216;ISO-8859-1&#8242;) {”这一行，把相应的编码格式改为网页的编码格式，这里我把&#8217;ISO-8859-1&#8242;改为&#8217;utf-8&#8242;。 问题解决了。 PHP可支持的编码格式列表。 Share and Enjoy: No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>最近开始看<a href="http://www.simpletest.org/" target="_blank">SimpleTest</a>，一个PHP下的单元测试框架，当然SimpleTest不单只能做单元测试，还能做自动化WEB测试。这个工具简单容易上手，不过就是遇到一个问题，生成的测试报告里面如果包含中文的话就乱码，网上搜了一下，解决办法如下：</p>
<p>找到SimpleTest目录下的reporter.php文件</p>
<p>查找到“function HtmlReporter($character_set = &#8216;ISO-8859-1&#8242;) {”这一行，把相应的编码格式改为网页的编码格式，这里我把&#8217;ISO-8859-1&#8242;改为&#8217;utf-8&#8242;。</p>
<p>问题解决了。</p>
<p><a href="http://www.php.net/manual/en/function.htmlentities.php" target="_blank">PHP可支持的编码格式列表</a>。</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://magustest.com/blog/feed/" title="RSS"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<img src="http://magustest.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<img src="http://magustest.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<img src="http://magustest.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F&amp;t=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98" title="Facebook"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F&title=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98" title="豆瓣"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.douban.com/recommend/?url=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F&title=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98&n=1" title="豆瓣九点"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98&amp;link=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F" title="FriendFeed"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<img src="http://magustest.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F&amp;title=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98" title="Live"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<img src="http://magustest.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://shuqian.qq.com/post?jumpback=1&title=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98&uri=http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F" title="QQ书签"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=%E8%A7%A3%E5%86%B3SimpleTest%E8%BE%93%E5%87%BA%E4%B8%AD%E6%96%87%E6%B5%8B%E8%AF%95%E7%BB%93%E6%9E%9C%E6%8A%A5%E5%91%8A%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98%20-%20http%3A%2F%2Fmagustest.com%2Fblog%2Fphp%2Fsimpletest-result-utf-8%2F" title="Twitter"><img src="http://magustest.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://magustest.com/blog/php/simpletest-result-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
