homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2014年09月23日.11:04:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <542153CB.9060409@free.fr>
In-reply-to <1411469874.84.0.592893563163.issue18814@psf.upfronthosting.co.za>
Content
Le 23/09/2014 12:57, Nick Coghlan a écrit :
> The function definition again, this time with a draft docstring:
> 
> def convert_surrogateescape(data, errors='replace'):
> """Convert escaped raw bytes by applying a different error handler
> 
> Uses the "replace" error handler by default, but any input
> error handler may be specified.
> """
> return data.encode('utf-8', 'surrogateescape').decode('utf-8', errors)
'utf-8' is hardcoded?
History
Date User Action Args
2014年09月23日 11:04:47pitrousetrecipients: + pitrou, lemburg, ncoghlan, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka
2014年09月23日 11:04:47pitroulinkissue18814 messages
2014年09月23日 11:04:46pitroucreate

AltStyle によって変換されたページ (->オリジナル) /