title: Why do Chinese characters turn into gibberish after it runs through compiler?
body: <p>So I am writing a program to turn a Chinese-English definition .txt file into a vocab trainer that runs through the CLI. However, in windows when I try to compile this in VS2017 it turns into gibberish and I'm not sure why. I think it was working OK in linux but windows seems to mess it up quite a bit. Does this have something to do with the encoding table in windows? Am I missing something? I wrote the code in Linux as well as the input file, but I tried writing the characters using windows IME and still has the same result. I think the picture speaks best for itself. Thanks</p>
  
  <p>Note: Added sample of input/output as it appears in Windows, as requested. Also, input is UTF-8.</p>
  
  <p>Sample of input</p>
  
  <pre><code>人(rén),person
  刀(dāo),knife
  力(lì),power
  又(yòu),right hand; again
  口(kǒu),mouth
  </code></pre>
  
  <p>Sample of output</p>
  
  <pre><code>Σ║║(r├⌐n),person
  σêÇ(d─üo),knife
  σè¢(l├¼),power
  σÅê(y├▓u),right hand; again
  σÅú(k╟Æu),mouth
  σ£ƒ(t╟ö),earth
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9JkTT.png" rel="nofollow noreferrer">Picture of Input file &amp; Output</a></p>