当前位置:网站首页>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 了 .
边栏推荐
- Configuring multiple instances of MySQL under Linux
- Idea package together, using compact middle packages to solve &
- Unity - use of API related to Pico development input system ---c
- Is it reliable to open a new bond registration account? Is it safe?
- Soft test -- software designer -- database design of afternoon questions
- Reverse mapping of anonymous pages
- Prometheus + grafana + MySQL master-slave replication + host monitoring
- Redis uses sentinel master-slave switching. What should the program do?
- 设置cmd的编码为utf-8
- AI首席架构师8-AICA-高翔 《深入理解和实践飞桨2.0》
猜你喜欢

关于如何在placeholder中使用字体图标

ROS notes (09) - query and setting of parameters

小艺人黄鑫洋受邀参加巴黎时装周儿童单元武汉站

sql主從複制搭建

App automated testing appium Tutorial Part 1 - advanced supplementary content

LeetCode之三步问题

The solution of "user account control to continue, please enter administrator user name and password" appears in win10 Professional Edition

设置网页的标题部分的图标

ZYNQ_ IIC read / write m24m01 record board status

ROS 笔记(08)— 服务数据的定义与使用
随机推荐
Prometheus + grafana + MySQL master-slave replication + host monitoring
B_QuRT_User_Guide(29)
Doris学习笔记之介绍、编译安装与部署
redis02——一篇终结redis的五种数据类型操作命令(可学习、复习、面试、收藏备用)
AI首席架构师8-AICA-高翔 《深入理解和实践飞桨2.0》
关于如何在placeholder中使用字体图标
Introduction to Devops Basics
SOC clock configuration
图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
同花顺注册开户靠谱吗?安全吗?
PLSQL installation under Windows
2022巴黎时装周儿童单元6.19武汉站圆满落幕
【学习笔记】最短路 +生成树
块级元素上下左右居中的两个小技巧
Unity 获取当前物体正前方,一定角度、距离的坐标点
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
PC端隐藏滚动条
B_ QuRT_ User_ Guide(28)
Software design of resistance test board
Ambari (VI) -- ambari API use