title: how to preserve multi-byte characters after parse()
body: <p>When I parse R code with non-native characters under Windows, these characters seem to be turned into their Unicode representations, e.g.</p>
  
  <pre><code>Encoding('ğ')
  # [1] "UTF-8"
  parse(text="'ğ'")
  # expression('&lt;U+011F&gt;')
  parse(text="'ğ'", encoding='UTF-8')
  # expression('&lt;U+011F&gt;')
  deparse(parse(text="'ğ'")[1])
  # [1] "expression(\"&lt;U+011F&gt;\")"
  eval(parse(text="'ğ'"))
  # [1] "&lt;U+011F&gt;"
  </code></pre>
  
  <p>Since my locale is Simplified Chinese, I can parse code with Chinese characters without such a problem, e.g.</p>
  
  <pre><code>parse(text="'你好'")
  # expression('你好')
  </code></pre>
  
  <p>My question is, how can I preserve characters like the letter <code>ğ</code> in this example? Or at least how can I "reconstruct" the original characters after I <code>deparse()</code> the expression?</p>
  
  <p>My session info:</p>
  
  <pre><code>&gt; sessionInfo()
  R version 2.15.2 (2012-10-26)
  Platform: i386-w64-mingw32/i386 (32-bit)
  
  locale:
  [1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 
  [2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   
  [3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
  [4] LC_NUMERIC=C                                                   
  [5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  </code></pre>