Messy Chinese character display at Visual Studio 2019

Stan Huang 421 Reputation points

I got messy displaying some Traditional Chinese characters inside CPP codes, which has no display issue at Notepad++. The Notepad++'s displaying is as attached file 1.

  1. I tried to change the language setting at VS-2019 by Tools -> Options -> Environment -> International Settings, but I got "please use Visual Studio Installer to add additional languages".
  2. I followed "On the tab Installed, click button Modify next to the version of Visual Studio you need the English language pack for: In the next window, select Language packs tab, tick the English language and then accept changes by clicking Modify button (right bottom173767-ttt2.png173877-ttt3.png corner)." to add "Chinese, Taiwan" to it.
  3. I repeated the step 1, but got the same result.

How can I do to have the Traditional Chinese Characters has correct displaying?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,711 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 113.2K Reputation points

    Try closing the tab in Visual Studio, then right-click the file in Solution Explorer, select "Open With...", "C++ Source Code Editor (with encoding)", OK. Then select an appropriate encoding from the list, maybe one of Unicode or Chinese encodings.

    Or perhaps you can save the file in Notepad using a specific encoding, such as UTF-8 with BOM or signature, then re-open it in Visual Studio.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful