I am trying to represent the Amharic letter "ሀ" as this let letter = "\u{1200}" but when I run the app it gives me a question mark. any one who knows how to represent unicode characters not supported by IOS in swift?
Asked
Active
Viewed 293 times
0
-
1Possible duplicate of [How to express Strings in Swift using Unicode hexadecimal values (UTF-16)](http://stackoverflow.com/questions/31284538/how-to-express-strings-in-swift-using-unicode-hexadecimal-values-utf-16) – DeyaEldeen Jan 26 '16 at 13:20
-
2It `print`s fine in Playground. How are you presenting it to the screen? In a label? as the output of `drawString`? Do you know what font is being used? – Grimxn Jan 26 '16 at 13:21
-
5Possible duplicate of [iOS does not support Ahmaric language character](http://stackoverflow.com/questions/18697483/ios-does-not-support-ahmaric-language-character) – Eric Aya Jan 26 '16 at 13:26
1 Answers
2
If the rendering of the character is the problem, make sure you use a font that is capable of that character.
If this is no duplicate, it's about the font, not swift or representation in code.

Tobi Nary
- 4,566
- 4
- 30
- 50