Objective

NSString是一个常用的类,NSString是原生支持unicode

C中的字符串 比如char * a = "hello world";  是utf8类型的,

 char* destDir = [filepath UTF8String];

反过来的话使用这个方法

char *str ="abc";

 NSString *s = [NSString stringWithUTF8String:str];

原文地址:https://www.cnblogs.com/ccguo/p/3353542.html