Created
September 3, 2014 14:32
-
-
Save xZise/f15235a0289f312aa61b to your computer and use it in GitHub Desktop.
Unicode example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python pwb.py cosmetic_changes -family:bomb -lang:en-gb -page:Äöü | |
ATTENTION: You can run this script as a stand-alone for testing purposes. | |
However, the changes that are made are only minor, and other users | |
might get angry if you fill the version histories and watchlists with such | |
irrelevant changes. Some wikis prohibit stand-alone running. | |
Do you really want to continue? ([y]es, [N]o) y | |
Password for user BobBot on bomb:en-gb (no characters will be shown): | |
Logging in to bomb:en-gb as BobBot | |
Retrieving 1 pages from bomb:en-gb. | |
Traceback (most recent call last): | |
File "pwb.py", line 171, in <module> | |
run_python_file(fn, argv, argvu) | |
File "pwb.py", line 69, in run_python_file | |
exec(compile(source, filename, "exec"), main_mod.__dict__) | |
File "scripts/cosmetic_changes.py", line 909, in <module> | |
main() | |
File "scripts/cosmetic_changes.py", line 903, in main | |
bot.run() | |
File "/home/xzise/Programms/core/pywikibot/bot.py", line 934, in run | |
self.treat(page) | |
File "scripts/cosmetic_changes.py", line 848, in treat | |
self.current_page = page | |
File "/home/xzise/Programms/core/pywikibot/bot.py", line 861, in current_page | |
msg = u'Working on %r' % page | |
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) | |
<type 'exceptions.UnicodeDecodeError'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment