https://bugzilla.wikimedia.org/show_bug.cgi?id=55018
Web browser: --- Bug ID: 55018 Summary: standardize_notes.py encoding Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
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.