<?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>南芝 - 我才12岁（飞鸟尽，良弓藏，2011，背包去旅行！） &#187; YUIDoc</title>
	<atom:link href="http://www.12sui.cn/tag/yuidoc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.12sui.cn</link>
	<description>南芝的前端技术学习经验</description>
	<lastBuildDate>Sun, 08 Jan 2012 09:22:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>YUI Doc 中文注释解决方法</title>
		<link>http://www.12sui.cn/develop/yui-doc-chinese-note-bug-fix/</link>
		<comments>http://www.12sui.cn/develop/yui-doc-chinese-note-bug-fix/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 02:58:23 +0000</pubDate>
		<dc:creator>南芝</dc:creator>
				<category><![CDATA[编码]]></category>
		<category><![CDATA[YUIDoc]]></category>

		<guid isPermaLink="false">http://www.12sui.cn/?p=834</guid>
		<description><![CDATA[还没安装 YUI Doc 的请看下秦歌的这篇文章：http://dancewithnet.com/2008/12/30/why-start-yui-doc/ 这里主要是说中文注释的问题，秦歌文章下边的中文注释问题的解决方法，第3、4步都可以省略了，目前版本的YUI Doc可以正确生成文档的，但要求是文件为utf-8文件。大家正常编码的时候通常都不习惯文件为utf-8的，所以，这个是相当繁琐的，解决的办法就是在copy文件的时候，将copy的文件转换为utf-8文件，这样子不会影响原来的文件，还能正确生成文档。 修改方法： 打开yuidoc/bin/下的yuidoc_parse.py文件，找到第43行： fileStr=StringIO(f.read()).getvalue() 将其修改为： fileStr=StringIO(f.read()).getvalue().decode("GBK").encode("UTF8") OK，这样子就解决了问题~]]></description>
			<content:encoded><![CDATA[<p>还没安装 YUI Doc 的请看下<a href="http://dancewithnet.com/">秦歌</a>的这篇文章：<a href="http://dancewithnet.com/2008/12/30/why-start-yui-doc/">http://dancewithnet.com/2008/12/30/why-start-yui-doc/</a></p>

<p>这里主要是说中文注释的问题，秦歌文章下边的中文注释问题的解决方法，第3、4步都可以省略了，目前版本的<a href="http://yuilibrary.com/downloads/yuidoc/yuidoc_1.0.0b1.zip">YUI Doc</a>可以正确生成文档的，但要求是文件为utf-8文件。大家正常编码的时候通常都不习惯文件为utf-8的，所以，这个是相当繁琐的，解决的办法就是在copy文件的时候，将copy的文件转换为utf-8文件，这样子不会影响原来的文件，还能正确生成文档。</p>

<p><strong>修改方法：</strong></p>

<p>打开yuidoc/bin/下的yuidoc_parse.py文件，找到第43行：</p>

<p><pre>fileStr=StringIO(f.read()).getvalue()</pre></p>

<p>将其修改为：</p>

<p><pre>fileStr=StringIO(f.read()).getvalue().decode("GBK").encode("UTF8")</pre></p>

<p>OK，这样子就解决了问题~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.12sui.cn/develop/yui-doc-chinese-note-bug-fix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

