| Mpaa added a comment. |
In T143937#2589556, @valhallasw wrote:I assume that where the code ran a .decode('latin-1') for DekelE, it runs a .decode('utf-8') for you. It's not clear to me whether that's related to the wiki or to some environmental setting (e.g. the console/windows encoding?). Nevertheless, running .encode().decode().encode() is something we shouldn't be doing in the first place.
A lot of fall backs ... :-)
@DekelE, what do you have as config.console_encoding (you need to import 'from pywikibot import config2 as config')?
TASK DETAIL
EMAIL PREFERENCES
To: Mpaa
Cc: Mpaa, Xqt, DekelE, Guycn2, Aklapper, valhallasw, pywikibot-bugs-list, Mdupont, JJMC89, jayvdb
Cc: Mpaa, Xqt, DekelE, Guycn2, Aklapper, valhallasw, pywikibot-bugs-list, Mdupont, JJMC89, jayvdb
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
