在NSString对象中获取奇怪的中文字符

时间:2013-03-10 05:53:00

标签: xcode4.6

当我有以下代码时:

NSString *shape = @"▲";
int _length = 3;

setCardContents = [shape stringByPaddingToLength:_length withString:shape startingAtIndex:0];

当我在上一行之后放置一个断点然后检查值setCardContents时,我在文本的末尾会得到一些奇怪的字符。

来自调试: screen shot from debug

0 个答案:

没有答案
相关问题