String Encoding

From ASCII to Emoji: The Story of String Encoding in Swift
From ASCII to Emoji: The …

Every String you type in Xcode has a long, messy and surprisingly human story behind it. By the end of this article you will know why "😀".count is 1, but "😀".utf8.count is 4, and how we got there: from a 7-bit table in 1963 to emoji today.

Let’s follow that story and see …