3 ms·
No it isn't. Any letter with an accent will take up two bytes. Most non-Latin characters take up three bytes, sometimes even four.
by kijin 15y ago
No it isn't. Any letter with an accent will take up two bytes. Most non-Latin characters take up three bytes, sometimes even four.
- Tloewald 15y agoYes but those two bytes will be in the same order regardless of the endianness of the system.
- ori_b 15y agoPoorly phrased. It can take multiple bytes to fully define one codepoint, but the encoding is defined in terms of a stream of single bytes. In other words, each unit is one byte, hence flipping each unit gives back the same unit. This is not the case for UTF-16 and UTF-32.
- ybungalobill 15y agoAFAIK the correct term is "byte oriented".