[Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

Lino Mastrodomenico l.mastrodomenico at gmail.com
Fri Apr 24 21:41:21 CEST 2009

2009/4/22 "Martin v. Löwis" <martin at v.loewis.de>:
> To convert non-decodable bytes, a new error handler "python-escape" is
> introduced, which decodes non-decodable bytes using into a private-use
> character U+F01xx, which is believed to not conflict with private-use
> characters that currently exist in Python codecs.

Why not use U+DCxx for non-UTF-8 encodings too?

Overall I like the PEP: I think it's the best proposal so far that
doesn't put an heavy burden on applications that only want to do
simple things with the API.

Lino Mastrodomenico

More information about the Python-Dev mailing list