title: Encoding issue in .Rprofile at the startup of R
body: <p>I use R (v3.5.1) on Windows 10. And there is a <code>.Rprofile</code> file in my working directory. The file contains non-ASCII letters but is saved with UTF-8 encoding. At the startup, the encoding of non-ASCII letters is distorted. For example the code:</p>
  
  <pre><code>nth &lt;- Sys.setlocale(locale = "Lithuanian")
  print("Ą Ę Ė Į Š Č Ų")
  </code></pre>
  
  <p>if run at the startup results in:</p>
  
  <pre><code>[1] "Ä„ Ä\230 Ä– Ä® Å  Ä\214 Å²"
  </code></pre>
  
  <p><strong>My questions are:</strong></p>
  
  <ol>
  <li>Is it possible to configure R that it sources <code>.Rprofile</code> with UTF-8 encoding at the startup? </li>
  <li>Is there another way to get non-ASCII letters encoded correctly at the startup?</li>
  </ol>