unicode ,UTF-8编码总结

文章感受

一. 文章来源
http://tool.chinaz.com/tools/unicode.aspx

二. 理解感受
总共有的编码方式有。
1.unicode 编码
2.UTF-8编码
3.unix的时间编码
4.native和Ascli编码互转。
5.hex编码、解码
6.html编码,解码
7.base64 编码,解码

三. 文章质量

四. 问题待解

五. 创建时间
2020-12-31

文章内容 在这里插入图片描述

1.unicode 编码

1.1 ASCii 转 unicode
unicode 编码—》unicode 编码
![[Pasted image 20201231141723.png]]

1.2 unicode转 ascill
在这里插入图片描述

1.3 中文转Unicode
中文—》\u4e2d\u6587\u0031
![[Pasted image 20201231142011.png]]

2.UTF-8编码

中文转utf-8编码
中文—中文
![[Pasted image 20201231143310.png]]

3.unix的时间编码

时间 --》 时间戳
2020/12/31 14:39:22 —》1609396762

在这里插入图片描述

4.native和Ascli编码互转。

ascii —》native

ascii -->\u0061\u0073\u0063\u0069\u0069

5.hex编码、解码

hex编码-
hex编码-utf-8 --》 %68%65%78%e7%bc%96%e7%a0%81
hex编码-gb2312 --》%68%65%78%b1%e0%c2%eb
utf -8是3个16进制组成一个中午 , gb231是两个

6.html编码,解码

<script> -->&lt;script&gt;

![[Pasted image 20201231150934.png]]

7.base64 编码,解码

编码–》57yW56CB
网站 https://base64.us/

猜你喜欢

转载自blog.csdn.net/weixin_42109829/article/details/112653769