4 ms·
The absolute minimum you must know about Unicode and encodings
- Terr_ 2y agoIMO one of the pedagogical issues is that people who start with ASCII often assume that the byte-representation (e.g. 0x48) is numerically the same as the code-point (48 in hex and/or 73 in decimal) and vice versa. This leads to a mental model of: (bytes which are numbers) -> pictures That breaks down when you get into UTF-8 which forces people to recognize more steps: bytes -> numbers -> pictures And then when it comes to things like code-points that might have no visual representation themselves, but modify others, like accents. bytes -> numbers -> groups of numbers modifying each other -> pictures
- gnabgib 2y ago(2003) Big in: 2012 (214 points, 75 comments) https://news.ycombinator.com/item?id=3448507 https://news.ycombinator.com/item?id=3448507 2014 (96 points, 37 comments) https://news.ycombinator.com/item?id=6996500 https://news.ycombinator.com/item?id=6996500 2010 (61 points, 21 comments) https://news.ycombinator.com/item?id=1219065 https://news.ycombinator.com/item?id=1219065 2017 (57 points, 11 comments) https://news.ycombinator.com/item?id=13908703 https://news.ycombinator.com/item?id=13908703
- bbkj 2y ago[flagged]