2 ms·
It's better to fail than to convert something that probably isn't latin1!
by jstimpfle 10y ago
It's better to fail than to convert something that probably isn't latin1!
- tyingq 10y agoWell, it's not clear what behavior he was looking for. And not possible to compare speed without an encoding that works for 0-255.
- mark-r 10y agoThe latin1 codec doesn't fail for any values in the 0-255 range. It probably should, since there are values that don't map to a valid character. I don't know if this is deliberate and guaranteed or just an artifact of the current implementation. There should have been a 'byte' encoding that was explicitly made for 1:1 conversions.