当前位置:网站首页>使用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 |
边栏推荐
- 静态链表(数组的下标代替指针)
- Students who do not understand the code can also send their own token, which is easy to learn BSC
- Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
- Static linked list (subscript of array instead of pointer)
- MySQL constraints
- Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
- The network card fails to start after the cold migration of the server hard disk
- Which securities company has the lowest Commission for opening an account online? I want to open an account. Is it safe for the online account manager to open an account
- Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
- Can newly graduated European college students get an offer from a major Internet company in the United States?
猜你喜欢

研发团队资源成本优化实践

Libuv库 - 设计概述(中文版)

This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version

掌握Cypress命令行选项,是真正掌握Cypress的基础

Introduction to the implementation principle of rxjs observable filter operator

Go language unit test 3: go language uses gocovey library to do unit test

mysql更新时条件为一查询

Road construction issues

Today's sleep quality record 77 points

使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
随机推荐
MySQL functions and related cases and exercises
[技术发展-24]:现有物联网通信技术特点
Error running 'application' in idea running: the solution of command line is too long
mysql中的字段问题
The principle of human voice transformer
MySQL installation, uninstallation, initial password setting and general commands of Linux
SQL Injection (GET/Select)
Red hat satellite 6: better management of servers and clouds
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
挡不住了,国产芯片再度突进,部分环节已进到4nm
mysql更新时条件为一查询
Libuv Library - Design Overview (Chinese version)
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2
Introduction to the implementation principle of rxjs observable filter operator
Flutter动态化 | Fair 2.5.0 新版本特性
【被动收入如何挣个一百万】
Setting up remote links to MySQL on Linux
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti