4 ms·
£ is still just a byte
by mjburgess 3y ago
£ is still just a byte
- edent 3y agoAnd yet it is reasonably common to see "£" when the UTF-8 is misinterpreted.
- johannes1234321 3y agoWhen using latin-1/latin-15/iso-8859-1/iso-8859-15/cp1252 that statement is true. With utf-8 it is two bytes (c2 a3), if a software uses utf-16, ucs-2, etc. it may be more.
- josefx 3y agoNot in any modern encoding and certainly not in ASCII either. Having the highest order bit set makes that kind of problematic.
- tuukkah 3y agoNope, says UTF-8.
- rightbyte 3y ago'u32_pound & 0xff == u32_pound' happens to be true, ye. It doesn't make it a byte. You need the leading 0s.
- mjburgess 3y agoMy mistake