Hi Friedrich
I have problems on the Dutch wikipedia as well if pages contains these characters or if you use the -file switch and you give the name of a file that contains these characters.
I do not have a solution though.
Regards Annabel
----- Original Message ---- From: Friedrich Gelbard friedrich.gelbard@gmx.net To: pywikipedia-l@lists.wikimedia.org Sent: Wednesday, October 10, 2007 12:22:25 PM Subject: [Pywikipedia-l] replace.py UnicodeDecodeError
I run the replace.py bot on a private MediaWiki. It works so for well but as soon as the page (where I want to replace words) contains German Umlaute like ä, ö, ü I get the error message
File "Z:\Spezifikation\pywikipedia\wikipedia.py", line 2175, in getData data = data.encode(self.site.encoding()) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1684: ordin al not in range(128)
Is there any work around? Has someone tried the replace.py bot with German pages?
Thanks Friedrich
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC