Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/327/
Reported by: n-fran
Created on: 2013-01-25 14:38:46
Subject: standardize_notes.py encoding
Original description:
If I want to add to the script text of russian letters, is this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range\(128\)
To avoid this error, I think, it is necessary to register in the code bot these or any of the other lines:
\# -\*- coding: utf-8 -\*-
import sys
reload\(sys\)
sys.setdefaultencoding\('utf-8'\)
And my bot started to function. Thanks.
Version: compat-(1.0)
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/327