Some things about the ASCII,Unicode and UTF-8

  • ASCII: 1 byte,just can cover 255 characters,usually used in pure English text.
  • Unicode:ASCII can’t cover many other type’s words. Unicode uniform all of the words to the same rule.Usually it is consist of 2 bytes and sometimes more
  • UTF-8:
    – Unicode will cost much memory and usually Unicode will cost 2 times memory compared with ASCII.So UTF-8 was created.UTF-8 will code the charactor to 1~6 bytes depend on the charactor.For example,English word will be 1 byte and a chinese word usually will be 3 bytes.
    – UTF-8 can also suppot the ASCII.So some old softwares that just can support the ASCII also can work with the UTF-8
    – the PC’s memory will store the data with Unicode in order to support all of the words and will be stored with UTF-8 in the desk
    – If you are doing work in the notepad,the words will be the Unicode.Then you save the file to the disk,the data will be transformed to UTF-8
    – the C/S also do the same work.when you are watching the web.the server will create the web page with Unicode,and change it to UTF-8 when sending the data to the client.The client also return the data to the Unicode and show the page on the browser.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值