News for hackers. Stuff that matters.
Re:UTF-8 – "The most elegant hack" by ww520 on Saturday September 28, 2013 @07:47PM (#6463507)
And thanks to Java popularizing UTF-8. Java was the major language to support Unicode natively. The lack of Unicode support in C++ was disappointing.

(Yes, UTF-8 hack is nothing compared to Huffman coding. The Deflate compression algorithm using Huffman coding to encode the LZ77 output and the Huffman encoding table itself is another notch up on the hacking coolness scale.)

Re:UTF-8 – "The most elegant hack" by shadowmatter on Saturday September 28, 2013 @08:53PM (#6463665)
From http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Ch...: "The native character encoding of the Java programming language is UTF-16."

That said, at least they adopted a Unicode encoding, and helped it establish mindshare.

Re:UTF-8 – "The most elegant hack" by sanderjd on Saturday September 28, 2013 @08:21PM (#6463606)
Is this right? Doesn't Java use UTF-16 internally?
Re:UTF-8 – "The most elegant hack" by rspeer on Sunday September 29, 2013 @02:35AM (#6464340)
And Java's first attempt to implement UTF-8, the one they called "UTF8", is not UTF-8. It's almost but not quite CESU-8. It will probably fuck up your astral characters (like emoji).

The real Java UTF-8 is, intuitively, named "AL32UTF8".

Re:UTF-8 – "The most elegant hack" by davidgerard on Sunday September 29, 2013 @04:45PM (#6466455)
And then there's the unremitting horror that MySQL calls UTF-8, properly known as WTF-8.
Re:UTF-8 – "The most elegant hack" by rspeer on Wednesday October 02, 2013 @03:45AM (#6481210)
I'd want to save the name "WTF-8" for that case where someone takes some text encoded as UTF-8, decodes it as if it's in a single-byte encoding, and then encodes the resulting mojibake as UTF-8 again.

Double UTF-8. WTF-8.