PowerShell ISE uses Unicode

by Aug 19, 2009

If you start experimenting with PowerShell V2 ISE (editor), you may notice that all scripts you create are saved in Unicode by default. This was done to support more languages, but you may no longer be able to open these scripts in other editors.

To work around that issue, either create a blank script with another editor (like notepad) and open this from within ISE (it will preserve existing encoding). Or save the current script explicitly in a different encoding like so:

$psISE.CurrentFile.Save([Text.Encoding]::ASCII)

Twitter This Tip! ReTweet this Tip!