It is convenient to modify the registry using the reg file. However, if the field contains Chinese characters, garbled characters appear in the registry after the reg file is executed.
Solution: Save the file in Unicode encoding mode.(Saving utf8 encoding is not acceptable)
Add or delete the reg code of right-click "open with Notepad ".
- Add "open with Notepad" (Save As. Reg for execution ):
Windows Registry Editor Version 5.00[Hkey_classes_root \ * \ shell \ open with notepad][Hkey_classes_root \ * \ shell \ open \ command in Notepad]@= "Notepad.exe \" % 1 \""
- Delete "open with Notepad" (Save As. Reg for execution ):
Windows Registry Editor Version 5.00[-Hkey_classes_root \ * \ shell \ open with notepad][-Hkey_classes_root \ * \ shell \ open \ command in Notepad]@= "Notepad.exe \" % 1 \""
Note the Unicode encoding method for saving the text.
Reg file garbled characters