XZise added a subscriber: XZise.
XZise added a comment.
With Python 3 the `sys.stdout` etc. streams are now using `str` (which is basically
`unicode` in Python 2). But in Python 2 it requires `bytes` so it's encoding the
string as UTF-8 bytes.
Now the Unicode support in Windows is always a bit problematic. I don't have a Windows
OS available at the moment to test that quickly, but one way to fix it would be not to
encode it. I'll provide a patch shortly and would appreciate if you test it
(especially with non ASCII characters).
Apart from that (referencing to the discussion @Sitic linked to) I don't think that
Python 3 is only partially supported. I basically only use it with Python 3.4.2 and got
not problems (but on Linux so I can't encounter this particular bug).
TASK DETAIL
https://phabricator.wikimedia.org/T91921
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: XZise, Sitic, Aklapper, Dalba, jayvdb, pywikipedia-bugs