Author vstinner
Recipients Arfrever, inada.naoki, ishimoto, loewis, mrabarnett, ncoghlan, pitrou, rurpy2, serhiy.storchaka, vstinner
Date 2012-08-09.20:46:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344545203.11.0.1551159181.issue15216@psf.upfronthosting.co.za>
In-reply-to
Content
Note: it is not possible to reencode the buffer of decoded characters to compute the offset in bytes. Some codecs are not bijective.

Examples:

 * b'\x00'.decode('utf7').encode('utf7') == b'+AAA-'
 * b'\xff'.decode('ascii', 'replace').encode('ascii', 'replace') == b'?'
 * b'\xff'.decode('ascii', 'ignore').encode('ascii', 'ignore') == b''
History
Date User Action Args
2012-08-09 20:46:43vstinnersetrecipients: + vstinner, loewis, ishimoto, ncoghlan, pitrou, mrabarnett, Arfrever, inada.naoki, rurpy2, serhiy.storchaka
2012-08-09 20:46:43vstinnersetmessageid: <1344545203.11.0.1551159181.issue15216@psf.upfronthosting.co.za>
2012-08-09 20:46:42vstinnerlinkissue15216 messages
2012-08-09 20:46:42vstinnercreate