当前位置:网站首页>使用vscode查看Hex或UTF-8编码
使用vscode查看Hex或UTF-8编码
2022-07-03 13:17:00 【sanqima】
vscode是一个跨平台、支持多种语言、插件非常的IDE,用它来查看源代码、查看文件的hex或UTF-8编码,非常方便。这里推荐vscode里查看hex或UTF-8的插件:Hex Editor,具体如下。
1 安装Hex Editor
打开vscode,点击左侧的田字图标 --》在"扩展商店"里,输入 hex,选中Hex Editor —> 安装即可。

2 查看UTF-8编码
将要查看的文件,拖入vscode,比如将hello.txt 拖入vscode --> 在vscode的Tab页里右击hello.txt --> 重新打开编辑器的方式–> Hex Editor --》得到文件袋 UTF-8编码,如图(2)、图(3)所示:


点击最开始的字节,在右侧显示详细详细,得到中文的"天"字的UTF8的编码为:E5 A4 A9,如图(4)所示:

3 不同语境下的"云"字UTF-8编码
李白的诗:“举头望明月,低头思故乡”,同样是月亮,中文叫"月亮",而英文叫“Moon”。同样是天空中的一朵云,不同的语言,有不同表示方法,则它的UTF-8也是不同的。
语言 | 原文 | UTF-8编码 |
---|---|---|
英语 | cloud | 0x63 6C 6F 7F 64 |
中文 | 云 | 0xE4 BA 91 |
俄语 | облака | 0xD0 BE D0 B1 D0 BB D0 B0 D0 BA D0 B0 |
韩语 | 구름 | 0xEA B5 AC EB A6 84 |
日语 | クラウド | 0xE3 82 AF E3 83 A9 E3 82 A6 E3 83 89 |
法语 | Nuage | 0x4E 75 61 67 65 |
德语 | Wolke | 0x57 6F 6C 6B 65 |
西班牙语 | Nube | 0x4E 75 62 65 |
越南语 | Mây | 0x4D C3 A2 79 |
刚果语 | mbuka | 0x6D 62 75 6B 61 |
波斯语 | ابر | 0xD8 A7 D8 A8 D8 81 |
芬兰语 | pilvi | 0x70 69 6C 76 69 |
边栏推荐
- Disruptor -- a high concurrency and high performance queue framework for processing tens of millions of levels
- Libuv库 - 设计概述(中文版)
- 使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
- Windos creates Cordova prompt because running scripts is prohibited on this system
- The principle of human voice transformer
- Asp. Net core1.1 without project JSON, so as to generate cross platform packages
- MapReduce实现矩阵乘法–实现代码
- Field problems in MySQL
- 刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
- [技术发展-24]:现有物联网通信技术特点
猜你喜欢
Unity embeddedbrowser browser plug-in event communication
Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
Libuv库 - 设计概述(中文版)
Multi table query of MySQL - multi table relationship and related exercises
Introduction to the implementation principle of rxjs observable filter operator
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
User and group command exercises
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
mysql更新时条件为一查询
随机推荐
Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
JVM系列——概述,程序计数器day1-1
8 Queen question
Mastering the cypress command line options is the basis for truly mastering cypress
Golang — template
Software testing is so hard to find, only outsourcing offers, should I go?
SQL Injection (GET/Select)
Libuv Library - Design Overview (Chinese version)
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
Go language unit test 4: go language uses gomonkey to test functions or methods
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
IBEM mathematical formula detection data set
MySQL constraints
Unable to stop it, domestic chips have made another breakthrough, and some links have reached 4nm
Today's sleep quality record 77 points
The solution of Chinese font garbled code in keil5
Universal dividend source code, supports the dividend of any B on the BSC
This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
Stack application (balancer)