title: Korean encoding issues in in R
body: <p>I am working with R codes that deal with Korean text. Below is a simple code to illustrate the problem:</p>
  
  <pre><code>a &lt;- "안녕"
  write.csv(a, "test.csv", fileEncoding = "UTF8")
  </code></pre>
  
  <p>Running above code gave me a csv file that contains <code>&lt;U+C548&gt;&lt;U+B155&gt;</code> instead of 안녕. RStudio already runs the "utf8" unicode as default. Console can print a object nicely, but <code>View(a)</code> gives <code>&lt;U+C548&gt;&lt;U+B155&gt;</code>, the uncoded string. The Environment tab also show the uncoded string for a value.</p>
  
  <p>I've tried to run the code with other computer that uses Korean Windows and it somehow works fine. So the language setting probably is the root issue. I actually am using Korean version of Windows 7 but with English as display language. Turning the display language back to default (Korean) actually makes it work! So probably the issue is the language encoding conflict or something in the system.</p>
  
  <p>Is there any fix other than me using Korean Windows in Korean?
  Thank you very much.</p>