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

help(hanziconv) raise UnicodeEncodeError #6

Open
fseasy opened this issue Feb 13, 2017 · 1 comment
Open

help(hanziconv) raise UnicodeEncodeError #6

fseasy opened this issue Feb 13, 2017 · 1 comment

Comments

@fseasy
Copy link

fseasy commented Feb 13, 2017

when I use help(hanziconv) in interactive console, it raise UnicodeDecodeError, as following,

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site.py", line 459, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib64/python2.7/pydoc.py", line 1745, in __call__
    self.help(request)
  File "/usr/lib64/python2.7/pydoc.py", line 1792, in help
    else: doc(request, 'Help on %s:')
  File "/usr/lib64/python2.7/pydoc.py", line 1529, in doc
    pager(render_doc(thing, title, forceload))
  File "/usr/lib64/python2.7/pydoc.py", line 1334, in pager
    pager(text)
  File "/usr/lib64/python2.7/pydoc.py", line 1354, in <lambda>
    return lambda text: pipepager(text, 'less')
  File "/usr/lib64/python2.7/pydoc.py", line 1375, in pipepager
    pipe.write(text)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-142: ordinal not in range(128)

may be it is not the program error ? But I don't know how to deal with it.

@berniey
Copy link
Owner

berniey commented Jul 31, 2017

Sorry to come to this late @MeMeDa. It could maybe your terminal setting. That feature was tested before the release and I've just tested it and it is still working.

Please provide more information on operating environment to move this forward.

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

2 participants