So Long Surrogates: How We Moved to UTF-8 in Haskell
If only Windows, Java and JavaScript could also move away from internal usage of UTF-16, it&#x27;s purely a legacy format and the worst of both worlds (UTF-32 and UTF-8). Even worse is that unicode itself, which should in theory be a list of codes for glyphs, modifiers and other script related values, that&#x27;s independent of encoding, had to have some codes reserved for &quot;surrogates&quot; for the UTF-16 encoding anyway. UTF-8 doesn&#x27;t need such a thing...