当前位置:网站首页>使用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 |
边栏推荐
- Ubuntu 14.04 下开启PHP错误提示
- Golang - command line tool Cobra
- Kivy tutorial how to automatically load kV files
- SVN添加文件时的错误处理:…\conf\svnserve.conf:12: Option expected
- Swiftui development experience: the five most powerful principles that a programmer needs to master
- Libuv库 - 设计概述(中文版)
- Flutter dynamic | fair 2.5.0 new version features
- AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
- Go language unit test 3: go language uses gocovey library to do unit test
- Unity EmbeddedBrowser浏览器插件事件通讯
猜你喜欢

8皇后问题

Mysql database basic operation - regular expression

Logback log sorting

SQL Injection (POST/Select)

Error running 'application' in idea running: the solution of command line is too long

logback日志的整理

MySQL constraints

Mycms we media mall v3.4.1 release, user manual update

Libuv Library - Design Overview (Chinese version)

Resolved (error in viewing data information in machine learning) attributeerror: target_ names
随机推荐
AI 考高数得分 81,网友:AI 模型也免不了“内卷”!
Universal dividend source code, supports the dividend of any B on the BSC
[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes
Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
[understanding by chance-37]: the structure of human sensory system determines that human beings are self-centered
PHP maze game
Unity render streaming communicates with unity through JS
JS convert pseudo array to array
Flutter动态化 | Fair 2.5.0 新版本特性
Error running 'application' in idea running: the solution of command line is too long
Logback log sorting
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
[redis] cache warm-up, cache avalanche and cache breakdown
SQL Injection (POST/Search)
栈应用(平衡符)
MapReduce实现矩阵乘法–实现代码
Golang — template
JS 将伪数组转换成数组
太阳底下无新事,元宇宙能否更上层楼?
SQL Injection (AJAX/JSON/jQuery)