Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Inproper encoding?

$
0
0

Paste this into Powershell Prompt (or ISE) and Char returns "å". Save this as a .ps1 file and executing it and it returns "A¥".

~~~~
$Char = "å"
$Char
~~~~

I've tried swathing the encoding but nothing I have tried has worked so far. It doesn't make sense why PowerShell.exe handles this any differently then a script does.

Any ideas???


Viewing all articles
Browse latest Browse all 13067

Trending Articles