将UTF-8编码的NSData转换为NSString - Convert UTF-8 encoded NSData to NSString

问题:

I have UTF-8 encoded NSData from windows server and I want to convert it to NSString for iPhone. 我从Windows服务器有UTF-8编码的NSData ,我想将它转换为iPhone的NSString Since data contains characters (like a degree symbol) which have different values on both platforms, how do I convert data to string? 因为数据包含在两个平台上具备不一样值的字符(如度数符号), 如何将数据转换为字符串? windows


解决方案:

参考一: https://stackoom.com/question/ALzw/将UTF-编码的NSData转换为NSString
参考二: https://oldbug.net/q/ALzw/Convert-UTF-8-encoded-NSData-to-NSString
相关文章
相关标签/搜索