MadFly-Team / NimbleIDE

NimbleIDE - development environment
GNU General Public License v3.0
1 stars 1 forks source link

[BUG]Chinese character garble #33

Open car520120 opened 5 months ago

car520120 commented 5 months ago

Describe the bug I am experiencing Chinese character garble when using Visual Studio 2022 on Windows 10. The Chinese text displayed in the IDE or output windows is not correctly rendered, resulting in a mix of unreadable characters or incorrect characters.

To Reproduce Steps to reproduce the behavior:

  1. Open Visual Studio 2022 on your Windows 10 system.
  2. Create a new project or open an existing one.
  3. Type or paste Chinese text into the code editor, output window, or any other relevant area.
  4. Observe the Chinese characters being displayed incorrectly, with garbled or unreadable text.

Expected behavior I expect the Chinese text to be displayed correctly in Visual Studio 2022, without any garbled characters or incorrect rendering.

Screenshots Unfortunately, I am unable to provide screenshots as the issue is text-based and does not involve any visual elements that can be captured in a screenshot. However, the issue can be easily reproduced by following the steps above.

Desktop (please complete the following information):

Smartphone (please complete the following information): Not applicable as the issue occurs on a desktop system.

Additional context I have tried changing the encoding settings within Visual Studio, as well as updating the IDE to the latest version. However, the issue persists. It is important to note that the issue only occurs when displaying Chinese text; other languages seem to display correctly. image

NeilBeresford commented 4 months ago

I can see what you mean. This is probably due to the font selection for the CMD application. For reference, personally I am using Windows Terminal (7.4.1) - and (due to the editor I use (neovim)) I am using a NERD font. This has the extended ASCII support that PDCurses library uses when 'drawing boxes'

At the very least, install the nerd font and set that to default for the 'CMD' application. Hopefully that alone will give you the correct characters you are missing.

I will supply links.

Windows terminal can be downloaded via the Microsoft store, please follow the instructions for making that the default

https://learn.microsoft.com/en-us/windows/terminal/install

Nerd font downloads -

https://www.nerdfonts.com/font-downloads

I would recommend the CaskaydiaCove Nerd Font.

Thank you for trying this, and as mentioned, this is still in very early development.

car520120 commented 4 months ago

I need to specify font configurations, can you give me an example?

NeilBeresford commented 4 months ago

Sorry, I didn't get your update, until now. I would recommend using Windows terminal and making that your default shell.

Now, in Settings, on the left, select defaults- then set the following/

image

In the Appearance section of 'defaults' - I have set the font here. Please see mine as an example, this is not how to set yours. Please choose a Nerd font from the one you have downloaded and installed.

Terminal001

Hope the above sort out your issues, thanks, Neil