How to fix the issue of VSCode not displaying Chinese characters?

To correctly display Chinese characters in VSCode, you can follow these steps to resolve the issue:

  1. Open VSCode and go to the settings interface. You can do this by using the shortcut Ctrl + , or by clicking on the settings icon on the left side.
  2. Type “locale” in the search box to locate the “Locale” option.
  3. Click on the dropdown menu and choose either “zh-cn” or “zh-tw” from the list based on your preference for Simplified or Traditional Chinese.
  4. Restart VSCode and the Chinese characters should display correctly.

If the above methods do not solve the issue, you can try the following methods:

  1. Open VSCode and go to the settings interface.
  2. Enter “files.autoGuessEncoding” in the search box to locate the option “Files: Auto Guess Encoding”.
  3. Change the value of the option to “true”.
  4. Restart VSCode and Chinese characters should be displayed correctly now.

If the above methods still do not work, consider updating or reinstalling VSCode to resolve the issue.

广告
Closing in 10 seconds
bannerAds