amirfl
amirfl

Reputation: 1644

NSString unicode subscript

How can I write create an NSString with subscript numerals? I'm trying to create a string that says X10, with the '10' as a subscript.
I tried to use the unicode numerals @"\u0081" and @"\u0080",but xcode gives an error "invalid universal character". Superscript numerals (@"\u00B3", for example) work fine, but I cant get subscripts to work.

Upvotes: 1

Views: 589

Answers (1)

Wevah
Wevah

Reputation: 28242

You're looking for U+2081 and U+2080. (U+0081 and U+0080 are not valid codepoints.)

Upvotes: 2

Related Questions