title: Set the encoding to ANSI in PowerShell 2.0
body: <p>I want to set the encoding of a file to ANSI using the parameter <code>-Encoding</code> of the <code>Set-Content</code> cmdlet, I tried this one but it didn't work:</p>
  
  <pre><code>Set-Content -LiteralPath "$filePath" -Encoding Default
  </code></pre>