Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange output #29

Closed
mjdunn opened this issue May 28, 2016 · 0 comments
Closed

Strange output #29

mjdunn opened this issue May 28, 2016 · 0 comments

Comments

@mjdunn
Copy link

mjdunn commented May 28, 2016

I tried using your lib with both 2.7.11 and 3.5.1. Py3 definitely seems to work better, but I'm getting odd output for some chars in both. For example:

$ python3                   
>>> from xpinyin import Pinyin
>>> p = Pinyin()
>>> p.get_pinyin(u"秋")
'qiu'
>>> p.get_pinyin(u"秋", show_tone_marks=True)
'qiū!!!!'
$ python
>>> from xpinyin import Pinyin
>>> p = Pinyin()
>>> p.get_pinyin(u"秋")
u'qiu'
>>> p.get_pinyin(u"秋", show_tone_marks=True)
u'qi\u016b!!!!'
@mjdunn mjdunn mentioned this issue May 28, 2016
@mjdunn mjdunn changed the title Python version support? Strange output May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant