当前位置:网站首页>Solution to Chinese garbled code after reg file is imported into the registry

Solution to Chinese garbled code after reg file is imported into the registry

2022-04-23 18:11:00 The hunter is eating meat

1、 Problem description

windows in , take reg Chinese garbled code will appear after the file is exported to the registry .
 Insert picture description here

2、 Problem analysis

There is a Chinese jumble , Mostly due to reg The file is not in the correct format .

Now? , The default code for most editors to save files is UTF-8. As shown in the figure below ,
 Insert picture description here
 Insert picture description here

While using UTF-8 Coded reg Chinese garbled code will appear when the file is imported into the registry , That's the problem .

3、 resolvent

The way to avoid Chinese garbled code is also very simple , modify reg Coding method of documents , Set to ANSI or UTF-16 LE code .

among ,UTF-16 LE It is the default code of the registry file exported by the system .

It is recommended to use windows Carry out code conversion with your own Notepad .
 Insert picture description here

After code modification , Re import reg file , You can see that the added Chinese menu has been displayed normally .
 Insert picture description here

Reprint : https://www.xstui.com/read/962

版权声明
本文为[The hunter is eating meat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210611118752.html