[Python-Dev] PEP 383 update: utf8b is now the error handler (original) (raw)
M.-A. Lemburg mal at egenix.com
Fri May 8 00:50:21 CEST 2009
- Previous message: [Python-Dev] PEP 383 update: utf8b is now the error handler
- Next message: [Python-Dev] PEP 383 update: utf8b is now the error handler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
The error handler for undoing this operation (ie. when converting a Unicode string to some other encoding) should probably use the same name based on symmetry and the fact that the escaping scheme is meant to be used for enabling round-trip safety. Could you please familiarize yourself with the implementation before commenting further?
I did and it already uses the same (wrong) name for both encoding and decoding handlers which is good.
The reason for my above comment was that the thread mentions two different names for the handler depending on the direction, e.g. "surrogatereplace" and "surrogatepass".
I guess that "surrogatepass" was just an attempt to find a new name for the "surrogates" error handler (which also doesn't match the naming scheme) and that got me confused.
I'd use "allowlonesurrogates" as name for the "surrogates" error handler and "lonesurrogatereplace" for the "utf8b" one.
Thanks,
Marc-Andre Lemburg eGenix.com
Professional Python Services directly from the Source (#1, May 08 2009)
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
2009-06-29: EuroPython 2009, Birmingham, UK 51 days to go
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/
- Previous message: [Python-Dev] PEP 383 update: utf8b is now the error handler
- Next message: [Python-Dev] PEP 383 update: utf8b is now the error handler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]