Solve the encoding problem of cmd, the problem of garbled characters in cmd, and the garbled characters after starting Ruoyi.

  1. Close your eyes and copy the following
@echo off
reg add "HKLM\SOFTWARE\Microsoft\Command Processor" /v "Autorun" /t REG_SZ /d "chcp 65001" /f >nul 2>&1
  1. Create a new TXT document on the desktop, then paste it in, and change the suffix name TXT to BAT
  2. Double-click to execute this file, and then the anti-virus software will pop up to report sensitive operations, click release to continue execution
  3. you're done

Reason for garbled characters: The default encoding is GBK, and it has been changed to utf-8 through this operation
. If you are worried, please refer to other blogs for manual modification methods: link here

Guess you like

Origin blog.csdn.net/a864034462/article/details/130348333