Lee Armstrong
Lee Armstrong

Reputation: 11450

UILabel displaying Unicode Characters

I have an NSString that then sets a UILabel. This contains unicode such as...

E = MC Hammer\U00ac\U2264

and complete ones such as

\U2013\U00ee\U2013\U00e6\U2013\U2202\U2013\U220f\U2013\U03c0 \U2013\U00ee\U2013\U220f\U2013\U03c0\U2013\U00aa\U2013\U221e\U2014\U00c5

These are not displaying correctly, is there anything I need to do to parse these at all?

Upvotes: 4

Views: 4878

Answers (2)

Ben Call
Ben Call

Reputation: 976

"U" needs to be a lowercase "u"

Upvotes: 6

fbrereto
fbrereto

Reputation: 35925

What code are you using to set the NSString? It's possible that the string is not being initialized properly, and that's having a negative impact on the UILabel.

Upvotes: 0

Related Questions