我有一个Unicode字符串作为转换Unicode字符串到的NSString
{\rtf1\ansi\ansicpg1252\cocoartf1265
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{check\}}{\leveltext\leveltemplateid1\'01\uc0\u10003 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
\paperw11900\paperh16840\margl1440\margr1440\vieww22880\viewh16200\viewkind0
\pard\li720\fi-720\pardirnatural
\ls1\ilvl0
\f0\fs24 \cf0 {\listtext
\f1 \uc0\u10003
\f0 }One\
{\listtext
\f1 \uc0\u10003
\f0 }Two\
}
在这里,我有Unicode数据\ u10003这相当于 “✓” 字。我已经使用 [NSString stringWithCharacters:“\ u10003”长度:NSUTF16StringEncoding]这是抛出编译错误。请让我知道如何将这些unicode字符转换为“✓”。
问候, 轰
你做了Google ..?这里是一个asnwer [转换Unicode字符为NSString](http://stackoverflow.com/questions/12090585/convert-unicode-character-to-nsstring) –
对不起,我没有得到任何东西在谷歌这一点。他们大多数有四位数字,这里我们有五个数字。 – boom
这就是[RTF](http://en.wikipedia.org/wiki/Rich_Text_Format)。你想用它做什么? –