title: C# Unicode string output
body: <p>I have a function to convert a string to a Unicode string:</p>
  
  <pre><code>private string UnicodeString(string text)
  {
      return Encoding.UTF8.GetString(Encoding.ASCII.GetBytes(text));
  }
  </code></pre>
  
  <p>But when I am calling this function the output result is wrong. It looks like my function is not working.</p>
  
  <p><code>Console.WriteLine(UnicodeString("добры дзень"))</code> printing on console just questions like that: <code>????? ????</code></p>
  
  <p>Is there a way to say to console to display it correct?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>It looks like the problem not in Unicode. I think maybe it is displaying question marks because I am not having the correct locale in the system (Windows&nbsp;7)?</p>
  
  <p>Is there a way to make it work without changing locale?</p>