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 #342

Open
unz3r0 opened this issue Nov 28, 2019 · 1 comment
Open

UnicodeEncodeError: 'ascii' codec can't encode character #342

unz3r0 opened this issue Nov 28, 2019 · 1 comment

Comments

@unz3r0
Copy link

unz3r0 commented Nov 28, 2019

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 36: ordinal not in range(128)
$> python --version
Python 2.7.12

This solved my problem:

Adding this to the dumpgenerator:

import sys
# encoding=utf8
reload(sys)
sys.setdefaultencoding('utf8')

https://markhneedham.com/blog/2015/05/21/python-unicodeencodeerror-ascii-codec-cant-encode-character-uxfc-in-position-11-ordinal-not-in-range128/

dennisroczek pushed a commit to dennisroczek/wikiteam that referenced this issue Nov 16, 2020
@dennisroczek
Copy link

hey @heerwinus THANKS for your lines. I needed to grab a wiki and it broke when downloading images. Hence I create a Pull Request as your changes worked like a charm for me!

burner1024 added a commit to burner1024/wikiteam that referenced this issue Jul 28, 2021
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