当前位置:网站首页>CMD Chinese garbled code solution
CMD Chinese garbled code solution
2022-07-27 12:21:00 【LOOPY_ Y】
cmd The solution of Chinese scrambling
1 problem
stay windows cmd Run in jar package ,jar Package start 、 Chinese logs will be printed at runtime , But there will be Chinese garbled , It's difficult to troubleshoot problems through logs . The code used in daily life is basically UTF-8, that , take cmd The encoding format of is changed to UTF-8 We can solve this problem .
2 solve
win+R Open the run window , Input “regedit”, Press “ determine ” Or press enter to open the registry .

Find the command processor location according to the following path :HKEY_LOCAL_MACHINE --> SOFTWARE --> Microsoft --> Command Processor, Choose Command Processor after , Right click in the blank area on the right –>“ newly build ” --> “ A string value ”, Select the new item , Rename it to “autorun”:

Checked items , Right click selection “ edit ”, Set numeric data to “chcp 65001”:

3 verification
When opening the command window , You will see that the encoded character set in the first line is automatically set to 65001. among ,65001 yes UTF-8 code page ,chcp Is the command used to set the code page , English is a (changestheactive console codepage )

边栏推荐
- 2021-3-23-meituan-priority queue
- Sword finger offer notes: T53 - I. find numbers in the sorted array
- Leetcode 02: sword finger offer 58 - I. flip the word order (simple); T123. Verify palindrome string; T9. Palindromes
- Go Beginner (4)
- Solve the problem of @onetomany query falling into circular reference
- V-show失效问题
- STS下载教程(include官网无法下载解决方案)
- Packet transmission: application layer - kernel - hardware
- USB network card drive data stream
- Makefile template
猜你喜欢

阿里云云数据库RDS版Exception during pool initialization

Lonely young people can't quit jellycat
![[product] about wechat product analysis](/img/b2/e1b32e86e2c991ae5c8f8a71f692fe.png)
[product] about wechat product analysis

Shutter project scrollcontroller attached to multiple scroll views, failed assertion: line 109 POS 12 error handling

Shake quickly to rescue the "frustrated person"

npm踩坑

Watermelon book chapter 3 (first & second)

go 用本地代码replace

Strictly control outdoor operation time! Foshan housing and Urban Rural Development Bureau issued a document: strengthening construction safety management during high temperature

5V升压9V芯片
随机推荐
USB network card drive data stream
Simple blockchain day based on bolt database (2)
5V升压9V芯片
Conversion between multiple bases
53 亿 BI 市场 TOP 10:帆软、微软、永洪、SAP、百度、IBM、SAS、思迈特、Salesforce、浪潮通软
Solve the problem of @onetomany query falling into circular reference
Chapter 10 enumeration classes and annotations
npm踩坑
Could not load dynamic library ‘libcudnn.so.8‘;
微信小程序必用接口「建议收藏」
Sword finger offer notes: T53 - I. find numbers in the sorted array
Watermelon book chapter 3 (first & second)
Sword finger offer notes: T53 - ii Missing numbers from 0 to n-1
Alibaba cloud RDS exception during pool initialization
JS parasitic combinatorial inheritance
How to make a graph? Multiple subgraphs in a graph are histogram (or other graphs)
Strictly control outdoor operation time! Foshan housing and Urban Rural Development Bureau issued a document: strengthening construction safety management during high temperature
Principle, concept and construction process of MySQL database master-slave replication cluster
硬刚甲方后:中国移动 4908 万大单被废
Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!