Hacker News new | past | comments | ask | show | jobs | submit login

I think the issue is with people getting used to python 2 approach, where the distinction was between str (bytes) and unicode. In python 3 you should not think of bytes vs unicode, you should think as text vs bytes and you should use text as long as necessary.

BTW: I believe the http headers supposed to be encoded using ISO-8859-1 it's essentially same thing as US-ASCII, but it covers an entire byte.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: