I need to make chemistry formulas (SO4^2-), and the easiest way to make subscripts and superscripts seems to be adding UTF-8 characters, since KCTSuperscriptAttributeName: property of NSAttributedString doesn’t work.
Is it possible for me to make an nsstring with normal characters and utf-8 characters?
Thanks
According to NSString Reference “NSString is implemented to represent an array of Unicode characters, in other words, a text string.”
It would be convenient to write as below:
NSString* myStr = @”Any Unicode Character You Want”;
Just make sure that your default text encoding is unicode.