Adam Olsen schrieb: > As far as I can tell, CPython on windows uses UTF-16 with code units. > Perhaps not intentionally, but by default (not throwing an error on > surrogates). It's intentionally; that's what PEP 261 specifies. Regards, Martin