title: Powershell Windows-1251 Encoding
body: <p>When I try to read a file with Russian encoding
  (Example):</p>
  <pre><code>$CommentChar = @(&quot;;&quot;)
  $commentRegex = &quot;^\s*([$($CommentChar -join '')].*)$&quot;
  switch -regex -file .\myinifile.ini {
  $commentRegex {
  $value = $matches[1]
  Write-host &quot;$value&quot;
  }
  }
  </code></pre>
  <p>Instead of Russian characters, I get that:
  �������� ����, 0 - ���������</p>
  <p>How can I change the encoding to Windows 1251 ?</p>