为什么从 hanzi.to_pinyin() 返回一个空字符串?

Why is an empty string returned from hanzi.to_pinyin()?

http://dragonmapper.readthedocs.org/en/latest/readme.html

我正在尝试使用 dragonmapper 将字符转换为拼音,我正在尝试教程,但我被卡住了。 http://dragonmapper.readthedocs.org/en/latest/tutorial.html

from dragonmapper import hanzi
s = '这个字怎么念?' 
pinyin = hanzi.to_pinyin(s)

此时pinyin是一个空字符串u''。我做错了什么?

(也在这里问:https://github.com/tsroten/dragonmapper/issues/11

啊哈,我忘了将字符串标记为 unicode:

s = u'这个字怎么念?'

或者,将字符串设为 unicode:

from __future__ import unicode_literals