请问下在mac下,怎么识别utf8和unicode编码。
解决方案 »
- 视频聊天中的语音聊天 AVCaptureAudioDataOutput
- 推荐两本书给iphone入门以及在云里雾里彷徨的童鞋...
- 两个UIViewController之间的切换效果
- object-c协议问题
- object c怎么从一段字符串中截取数据
- 动画循环播放的问题
- vmware8.0安装mac 时出现错误 hardware virtualization is disabled in the host bios
- 实现和国外的一个app(Teladoc)的动画效果
- OTA下载证书没有问题 下载ipa时报无法连接错误 是证书的错误吗?
- 实现用按钮控制产生随机数 求大神
- cocos2d-iphone-0.99.5编译问题
- 有没有好的opengl es demo的好的网站?
Unicode vs UTF-8The development of Unicode was aimed at creating a new standard for mapping the characters in a great majority of languages that are being used today, along with other characters that are not that essential but might be necessary for creating the text. UTF-8 is only one of the many ways that you can encode the files because there are many ways you can encode the characters inside a file into Unicode.UTF-8 was developed with compatibility in mind. ASCII was a very prominent standard and people who already had their files in the ASCII standard might hesitate in adopting Unicode because it would break their current systems. UTF-8 eliminated this problem as any file encoded that only has characters in the ASCII character set would result in an identical file, as if it was encoded with ASCII. This allowed people to adopt Unicode without needing to convert their files or even changing their current legacy software that was unaware of the Unicode standard. Any of the other mapping methods for Unicode breaks compatibility with ASCII and would force people to convert their system. The observance of compatibility to ASCII of UTF-8 produces a side-effect that makes it ideal for word processing where most of the time, all the characters being used are included in the ASCII character set. UTF-8 only uses a byte to represent every code point resulting in a file size that is half to the same file encoded in UT-16 which uses 2 bytes, and a quarter to the same file encoded in UTF-32 which uses 4.UTF-8 has been adopted in the World Wide Web because it is both space efficient and byte oriented. Web pages are often simple text files that usually do not contain any character that is outside the ASCII character set. Using other encoding methods would only increase the network load without any benefit. Even in email transport systems, UTF-8 is slowly but surely being adopted as a replacement for the older encoding systems that are still being used.Summary:
1. Unicode is the standard for computers to display and manipulate text while UTF-8 is one of the many mapping methods for Unicode
2. UTF-8 is a mapping method the retains compatibility with the older ASCII
3. UTF-8 is the most space efficient mapping method for Unicode compared to other encoding methods
4. UTF-8 is the most used Unicode standard for the webRead more: Difference Between Unicode and UTF-8 | Difference Between | Unicode vs UTF-8 http://www.differencebetween.net/technology/difference-between-unicode-and-utf-8/#ixzz10yaUmBgm
请用