3 ms·
If it was changed from ascii to utf-8, how does it break everyting else ?
by noselasd 9y ago
If it was changed from ascii to utf-8, how does it break everyting else ?
- user5994461 9y agoASCII doesn't exist as such. Characters are encoded in one byte and ascii leaves the highest 128 characters undefined. They are interpreted system-wise, depends on the locale and user settings.
- warbiscuit 9y ago"ascii" the codec does exist under python. It's strictly defined as byte values 0-127, anything in the 128-255 range causes a decoding error... >>> b"abc\xf0".decode("ascii") UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 3 Thus, moving the default from "ascii" to an ASCII-superset should have no decoding issues for previously valid files, since those bytes were never valid to start with.
- noselasd 9y agoASCII very much exists - but what you describe is an entierly different thing. Sure - if the change is from default-user-locale to UTF-8, things would break. But if the changelog is truthful, and the change is from ASCII to UTF-8, things should not break - at least not to any great extent.