Console.Write() - display extended ascii chars?

后端 未结 2 820
-上瘾入骨i
-上瘾入骨i 2021-01-13 08:35

I am able to correctly display the standard ASCII symbols (up to 127) like \"heart\", \"note\" you know what I mean. I would like to also display ones that I can use for dra

2条回答
  •  时光取名叫无心
    2021-01-13 09:05

    The problem appears to be with the Console application rather than with your program. The standard console in windows (cmd.exe) appears not to support Unicode properly - for example, try copying the string below and pasting directly into a cmd.exe window:

    Fußball Ö ü

    PowerShell seems to suffer from the same problem as well.

    One possible solution to your problem is to create a dedicated window/form to be used as an "output console" instead of using the actual console through which the application was executed.

提交回复
热议问题