News for hackers. Stuff that matters.
Re:The UTF-8-Everywhere Manifesto by cygx on Monday April 30, 2012 @07:08AM (#3908734)
Personally, I prefer UTF-8 as well. However, I think this whole debate about choice of encoding gets blown out of proportion.

Consider the following diagram:

                               [user-perceived characters] <-+
                                            ^                |
                                            |                |
                                            v                |
                  [characters] <-> [grapheme clusters]       |
                       ^                    ^                |
                       |                    |                |
                       v                    v                |
      [bytes] <-> [codepoints]           [glyphs] <----------+
Choice of encoding only affects the conversion from bytes to codepoints, which is pretty straight-forward: The subtleties lie elsewhere...

There are no comments on this comment yet.