oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

Encoding issue in output window #29

Closed Chinese-Xu closed 2 years ago

Chinese-Xu commented 2 years ago

Hi

It may a encoding issue. My OS is win10 CHS. image

oleg-shilo commented 2 years ago

You can check your encoding with

css -config:get:ConsoleEncoding

and you can set it to the desired one (e.g. UTF8) with.

css -config:set:ConsoleEncoding=UTF8

If you do not have CS-Script installed then you need to replace css with dotnet <path to cscs.dll>.

And you can also use envars for that system-wide: CSSCRIPT_CONSOLE_ENCODING_OVERWRITE

BTW this sort of problems can also araise from the inadequate font being used in the Debig Console. But I do not know how you can control it

Chinese-Xu commented 2 years ago

Thanks for your help The issue resolved by css -config:set:ConsoleEncoding=UTF8

Chinese-Xu commented 2 years ago

Thanks