1

I've realised I can't type some non-ASCII characters in the PowerShell console, all of which work fine in good old cmd.exe and should be supported by the code pages involved (it's a Spanish Windows edition with Spanish as only keyboard layout):

  • If I type it prints ?. When I hit enter I can see a normally looking euro sign in the error message:

    Test with '€'

  • If I type Á it doesn't print anything at all but I can print á just fine. Similarly, I can type lowercase ñ but not uppercase Ñ.

    Test with 'Á' and <code>á</code>

  • Interestingly, if I use clipboard to paste those chars I can see some of them:

    €ÁÑ

I happens in every Windows 10 PCs I've tried, with every TTF font I've tried.

Console code page is 850:

Current code page

Both [System.Console]::InputEncoding and [System.Console]::OutputEncoding show the same output:

IsSingleByte      : True
BodyName          : ibm850
EncodingName      : Europa occidental (DOS)
HeaderName        : ibm850
WebName           : ibm850
WindowsCodePage   : 1252
IsBrowserDisplay  : False
IsBrowserSave     : False
IsMailNewsDisplay : False
IsMailNewsSave    : False
EncoderFallback   : System.Text.InternalEncoderBestFitFallback
DecoderFallback   : System.Text.InternalDecoderBestFitFallback
IsReadOnly        : True
CodePage          : 850

Any idea of where to start looking?

0 Answers0