[swift-users] emoji in source code failed to compile in linux ubuntu

Dmitri Gribenko gribozavr at gmail.com
Fri Dec 4 13:47:56 CST 2015

On Fri, Dec 4, 2015 at 11:25 AM, Jens Alfke <jens at mooseyard.com> wrote:
> In other words, during UTF-8 encoding, some Unicode codepoints need to be broken into surrogate pairs. Therefore a UTF-8 decoder needs to recognize surrogate pairs and reassemble them into a single codepoint. That’s what’s not happening in this case.

No, surrogate code points can not appear in a UTF-8 stream, they can
only appear in UTF-16.

http://www.unicode.org/versions/Unicode8.0.0/ch02.pdf page 30, table 2-3.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-users mailing list