You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess, for imperfect servers you should use .read() instead and satinize all the bad symbols in the way you think it's right. I don't think there is a good strategy to deal with non UTF-8 symbols in UTF-8 response except to raise an exception.
Long story short
Unfortunately the world is not perfect.
Server in body UTF-8 can return non UTF-8 character.
Content-Type: text/html; charset=utf-8
Error: utf-8' codec can't decode byte 0x80 in position 19404: invalid start byte
Expected behaviour
Actual behaviour
Steps to reproduce
Your environment
The text was updated successfully, but these errors were encountered: