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

UnicodeEncodeError: 'ascii' codec can't encode character '\u2018' in position 22: ordinal not in range(128) #2

Closed
blucap opened this issue Jan 13, 2019 · 1 comment

Comments

@blucap
Copy link

blucap commented Jan 13, 2019

After install, I get this error:

(python3) Sun Jan 13 15:18:52 [Mint] user [~] $ pyvoc word
 |

word 
Verb:            express something spoken or written
example:         he words his request in a particularly ironic way

Noun:            single meaningful element of speech or writing
example:         Traceback (most recent call last):
  File "/home/user/anaconda2/envs/python3/bin/pyvoc", line 11, in <module>
    sys.exit(main())
  File "/home/user/anaconda2/envs/python3/lib/python3.5/site-packages/pyvoc/pyvoc.py", line 160, in main
    parsed_response = dictionary(args.word)
  File "/home/user/anaconda2/envs/python3/lib/python3.5/site-packages/pyvoc/pyvoc.py", line 103, in dictionary
    pretty_print_definition(word, parsed_response, examples)
  File "/home/user/anaconda2/envs/python3/lib/python3.5/site-packages/pyvoc/pyvoc.py", line 68, in pretty_print_definition
    print(sentence)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2018' in position 22: ordinal not in range(128)
@makkoncept
Copy link
Owner

hey @blucap, thanks for pointing out this bug.
It will be solved in the new version.

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