↳
In-reply-to
»
Utf-8 test only:
⤋ Read More
@movq@www.uninformativ.de
I’m not a Python programmer, so please bear with me.
The doc about encodings does also mention:
If you require a different encoding, you can manually set the Response.encoding property
Wouldn’t that be a one liner like (Ruby example)?
'some text'.force_encoding('utf-8')
I understand that you do not want to interfere with requests
. On the other hand we know that received data must be utf-8 (by twtxt spec) and it does burden “publishers” to somehow add charset
property to content-type
header. But again I’m not sure what “the right thing to do” ™ is.