將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
相關文章
相關標籤/搜索