Message 124732 - Python tracker (original) (raw)
Hmmm. Well, the docs seem to say that it's allowed and that it will be encoded as UTF-8.
Given the treatment of Unicode/bytes elsewhere in Python 3, all I can say is that this behavior is rather surprising.