当前位置:网站首页>Set the encoding of CMD to UTF-8
Set the encoding of CMD to UTF-8
2022-06-28 08:13:00 【Mediocrity and laziness】
Recent beginnings in database , It is found that whether inserting data or checking data, as long as Chinese is used, it is garbled , At first, I was very confused because my database has been formatted as utf-8, It took me a long time to find out because cmd The code of has not been changed , Let me talk about the settings cmd The default format is utf-8
One 、 Non default form
- First, enter... On the console chcp You can view the current code page as 936, You can also right-click cmd Then click the option in the attribute to view . Because I have already set it here, I use mysql Windows for demonstration .

- Directly in cmd Input chcp 65001 that will do , At this moment cmd Set it to utf-8 In the form of . But this change is limited to this time cmd window , If it's turned off cmd Open it again and you will find that the code page is still 936, So lazy people like me will utf-8 Change the format to default .
Two 、 Set up utf-8 As the default
1. First, open the run window to input regedit Open registry editor .

2. Follow the path below to enter the target item
Computer \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
It is strongly recommended that you directly copy and paste them into ow , If you are lazy, you must be lazy to the end .
3. Right click the right area , Click new to select a string value, and then create the following options 
Then click OK and OK 了 , Then you can open it cmd You will find that the default code page has become 65001 了 .
边栏推荐
- Doris学习笔记之介绍、编译安装与部署
- B_QuRT_User_Guide(29)
- B_ QuRT_ User_ Guide(26)
- Unity - use of API related to Pico development input system ---c
- Do you know TCP protocol (1)?
- 关于在cmd中MySQL不能插中文数据的原因
- MySQL two table connection principle (understand join buf)
- sql主從複制搭建
- Leetcode摆动序列系列
- Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
猜你喜欢

Activity implicit jump

2022第六季完美童模 佛山赛区 初赛圆满落幕

Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally

MySQL tablespace parsing

三角变换公式

Chenglian premium products donated love materials for flood fighting and disaster relief to Yingde

Connaissez - vous le protocole TCP (2)?

Online WPS tool

Ambari (VIII) --- ambari integrated impala document (valid for personal test)

关于如何在placeholder中使用字体图标
随机推荐
Study notes 22/1/11
How redis solves cache avalanche, breakdown and penetration problems
Uvcgan: unt vision transformer cycle-consistent Gan for unpropared image-to-image translation
The preliminary round of the sixth season of 2022 perfect children's model Foshan competition area came to a successful conclusion
【尚品汇】项目笔记
ZYNQ_ IIC read / write m24m01 record board status
Idea package together, using compact middle packages to solve &
新唐NUC980使用记录:自制开发板(基于NUC980DK61YC)
11grac turn off archive log
SOC timer and interrupt configuration
Airflow2.1.1 ultra detailed installation document
PC端隐藏滚动条
SOC serial port configuration
App automated testing appium Tutorial Part 1 - advanced supplementary content
B_ QuRT_ User_ Guide(28)
Image translation /transformer:ittr: unpaired image to image translation with transformers
2022第六季完美童模 佛山赛区 初赛圆满落幕
B_QuRT_User_Guide(28)
【学习笔记】差分约束
Generation and verification of JWT token