MySQL如何永久解决由dos编码格式导致MySQ的显示乱码
Ⅰ、新建文件 changeCode.txt
Ⅱ、粘贴下面代码(作用:将默认的GBK(936)修改为UTF-8(65001))
1 Windows Registry Editor Version 5.00 2 3 4 5 [HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe] 6 7 "CodePage"=dword:0000fde9 8 9 "FontFamily"=dword:00000036 10 11 "FontWeight"=dword:00000190 12 13 "FaceName"="courier New" 14 15 "ScreenBufferSize"=dword:232900d2 16 17 "WindowSize"=dword:002b00d2
Ⅲ、修改文件后缀名为reg
Ⅳ、双击运行、点击确定。
PS:还有一种临时的修改方法:
Ⅰ、打开cmd
Ⅱ、输入chcp 65001
*引之:https://blog.csdn.net/qq_35038153/article/details/78430359
原文地址:https://www.cnblogs.com/GetcharZp/p/9000400.html
时间: 2024-11-06 12:27:19