4

While doing further research for this question and this comment, I have come across the following problem in Swift 3.

let str = "Hello"
print(str[str.startIndex])

I would expect the result to be

 // the Swiss flag

Instead I get

 // Swiss, German, US flags

Why is this happening? How do I solve it?

Community
  • 1
  • 1
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
  • Possible workaround at [How to know if two emojis will be displayed as one emoji?](http://stackoverflow.com/questions/39104152/how-to-know-if-two-emojis-will-be-displayed-as-one-emoji). – Martin R Jan 12 '17 at 08:46

0 Answers0