[22:19:22] are there ever instances where requests to the MediaWiki API for JSON output _don't_ return a UTF-8 result? [22:25:36] mahir256: if utf8=false, it will escape non-ASCII stuff [22:26:08] with utf8=true, it's documented to not escape and instead return UTF-8 strings for.._most_ non-ascii chars [22:28:37] ah ok, good to know [22:29:54] just ran into issues with mwoauth where bytes-encoded Unicode strings (response.content, where 'response' is a requests.response) failed to get decoded properly [22:31:10] so as long as utf8=false is never set anywhere I can get away with using response.text instead of trying to decode response.content [22:32:23] (I wonder if anyone else ever ran into unicode issues with oauth before) [22:39:16] this was about the fields in JSON, I'd recommend to use response.json() which should work (it always did for me :)) [22:39:32] for oauth, IIRC it doesn't return a valid JSON if the auth is bad [22:42:11] (but maybe that's only for the special pages for the actual user flow? not sure)