UILabel显示Unicode字符 [英] UILabel displaying Unicode Characters
本文介绍了UILabel显示Unicode字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个NSString,然后设置了UILabel.其中包含unicode,例如...
I have an NSString that then sets a UILabel. This contains unicode such as...
E = MC Hammer \ U00ac \ U2264
E = MC Hammer\U00ac\U2264
以及完整的
\ U2013 \ U00ee \ U2013 \ U00e6 \ U2013 \ U2202 \ U2013 \ U220f \ U2013 \ U03c0 \ U2013 \ U00ee \ U2013 \ U220f \ U2013 \ U03c0 \ U2013 \ U00aa \ U2013 \ U221e \ U2014 \ U00c5
\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?
推荐答案
"U"必须是小写的"u"
"U" needs to be a lowercase "u"
这篇关于UILabel显示Unicode字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文