首页 > 其他 > 详细

xcode打印的汉字是什么编码

时间:2017-10-25 12:47:23      阅读:267      评论:0      收藏:0      [点我收藏+]

 

 

xcode打印中文的编码是Unicode。

例如:

Unicode:\U6ca1\U6709\U67e5\U8be2\U5230\U5bf9\U5e94\U7684\U7248\U672c\U4fe1\U606f!

对应的中文:

中文简体(GB 2312):没有查询到对应的版本信息!

 

An NSString object encodes a Unicode-compliant text string, represented as a sequence of UTF–16 code units. All lengths, character indexes, and ranges are expressed in terms of 16-bit platform-endian values, with index values starting at 0.

 

description
A string that represents the contents of the dictionary, formatted as a property list (read-only)

 

Though the property list format uses ASCII for strings, note that Cocoa uses Unicode. Since string encodings vary from region to region, this representation makes the format fragile. You may see strings containing unreadable sequences of ASCII characters; these are used to represent Unicode characters.


 

http://www.jianshu.com/p/f14b4cb1435b

 

转换工具http://tool.chinaz.com/tools/unicode.aspx

xcode打印的汉字是什么编码

原文:http://www.cnblogs.com/dengchaojie/p/7727992.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!