Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The UTF-8-Everywhere Manifesto. Parent comment
This is either false or misleading, depending on what you're talking about.
In UTF-8, '\0' is all-bits-zero, one byte, and means the same thing as it does in ASCII. It cannot occur in the encoding of any other character.
In UTF-16, the byte 0x00 may validly occur within the encoding of a character that is not '\0'. The same is true for UCS-4.
This is a big reason UTF-8 is as popular as it is.
There are no comments on this comment yet.
This is either false or misleading, depending on what you're talking about.
In UTF-8, '\0' is all-bits-zero, one byte, and means the same thing as it does in ASCII. It cannot occur in the encoding of any other character.
In UTF-16, the byte 0x00 may validly occur within the encoding of a character that is not '\0'. The same is true for UCS-4.
This is a big reason UTF-8 is as popular as it is.