oleg-shilo / cs-script.npp

CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64)
MIT License
246 stars 52 forks source link

Console output displays umlauts/vovel mutations wrong - Can't make any user input in the output window #68

Closed ghost closed 7 months ago

ghost commented 2 years ago

Notepad++ 8.1.4 64-bit CSScriptNpp 1.7.24.0

Hello,

I'm new to programming and notepad++ with CSScript.Npp.

My first problem is that the output window displays umlauts incorrectly. I read about Console.OutputEncoding = System.Text.Encoding.UTF8; in the FAQ but experimenting with it won't solve the issue, maybe since I don't know what I'm really doing.

Secondary, when I run a script asking for user input, I can't make any.

Can anybody help me with that?

Thanks and kind regards,

Marek

oleg-shilo commented 2 years ago

Hi Marek, The console output panel is for output. If you are to make an input then you need to run the script on its own. You need to run it as an external script (select the command from the Npp menu.

As for any non-ASCII characters then out of box, the extensиon supports it:

image

However, if the app/script for some reason breaks console encoding then indeed it is a problem. In such a case, it is safer to set the console to the desired encoding at the start of the script with Console.OutputEncoding = System.Text.Encoding.UTF8;.

if it does not help then just send me the piece of output that you are trying to use and I have a look.

BTW, please use the latest release (yesterday): https://github.com/oleg-shilo/cs-script.npp/releases/tag/v2.0.0.0-rc It is a complete port of the plugin and the extension to .NET6. However, since it is not published on Npp repo then you need to do it manually: https://github.com/oleg-shilo/cs-script.npp/wiki/Manual-Installation.