title: Setting input encoding for Windows PowerShell
body: <p>I'm working with a Java application's text interface on Windows using PowerShell. As parameters for text commands I need to input words containing non-standard latin characters (Central European). Those parameter words are than compared with words stored in the application's "dictionary". If a parameter matches with some word in dictionary I get expected results. </p>
  
  <p>The problem comes with input encoding. The application stores dicionary words using UTF-8. And I cannot make PowerShell to pass my parameters encoded in UTF-8. They don't match with words in the application because of encoding differences.</p>
  
  <p>I tried to control the input encoding in PowerShell setting $OutputEncoding and [Console]::InputEncoding variables to UTF-8. However, parameters are still wrongly encoded. How to make PowerShell encode keybord input, which is passed to application, using UTF-8?</p>
  
  <p>May the problem actually lay on the Java side?</p>