Message135422
> So the correct result for b'\xff\n'.decode('gb2312', 'replace') is u'?\n'?
I think it should be so. This behavior does not leave out possible information, has no side-effect on later decodings, and should the '\n' indeed be redundant, an output of u'?\n' would unlikely cause confusions.
Though, I have no knowledge on this subject code-wise. If a change of the behavior will have an impact on performance, maybe the change should not come in. |
|
Date |
User |
Action |
Args |
2011-05-07 09:08:39 | cdqzzy | set | recipients:
+ cdqzzy, lemburg, terry.reedy, vstinner, ezio.melotti |
2011-05-07 09:08:39 | cdqzzy | set | messageid: <1304759319.16.0.657010046531.issue12016@psf.upfronthosting.co.za> |
2011-05-07 09:08:38 | cdqzzy | link | issue12016 messages |
2011-05-07 09:08:38 | cdqzzy | create | |
|