Ned Batchelder <n...@nedbatchelder.com>:

> I see what you mean about JSON, but you are mistaken about HTTP and
> XML. Neither of them dictates the encoding of the data, and both of
> them offer ways to declare the encoding. This means XML parsers must
> be prepared for many different encodings.

You can rest assured that the line

   GET / HTTP/1.1<CR><LF>

is strictly 8-bit ASCII.

I was intentionally exaggerating about XML, but I have yet to encounter
non-UTF-8 XML in the wild.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to