/*
1.rune
代表一个字符, 底层int32, 4个字节.
2.len函数
字符串在内存中占用的字节数, 不是字符串长度
3.unicode utf8
//--------------------------------
统一用unicode方式来编码
Unicode是一个符号集, 它只规定了每个符号的二进制值,但是符号具体如何存储它并没有规定
UTF-8、UTF-16、UTF-32才是真正的字符编码规则 码点 code point. go: rune
Unicode Transformation Format
UTF-8: 是一种变长字符编码,被定义为将码点编码为 1 至 4 个字节
编码 unicode/utf8
vim :%!xxd
字符集
ascii
gbk
音视频图片
unicode/utf8
大小端(Big endian/Little endian)/BOM
判断文件是否带bom byte order mark []byte(e4 b8 ad)
检测编码
chardet
编码转换
win: gbk
linux: utf8
https://www.51cto.com/article/661981.html
https://developer.aliyun.com/article/1154340
https://www.freecodecamp.org/news/what-is-endianness-big-endian-vs-little-endian/
https://blog.csdn.net/qq_41800366/article/details/105835503
https://blog.csdn.net/pl0020/article/details/81542105
https://www.jianshu.com/p/9ebb1c152000
*/