擅长:python、mysql、java
<p>默认情况下,MeCab不返回UTF8。以下是以下链接的引文(通过谷歌翻译):</p>
<p><a href="http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html#charset" rel="nofollow">http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html#charset</a></p>
<blockquote>
<p>Unless otherwise specified, euc is used. If you would like to use the utf8 or shift-jis, change the charset with configure options dictionary, please rebuild the dictionary. Now, and shift-jis, dictionary of utf8 is created.</p>
</blockquote>
<p>尝试<code>result = tagger.parse(text).decode('euc-jp')</code>。在</p>