wikiteam
wikiteam copied to clipboard
UnicodeEncodeError: 'ascii' codec can't encode character
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/
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!