PowerShell ISE uses Unicode

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!


Posted Aug 19 2009, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.