title: source() not recognising characters of Sys.setlocale in R
body: <p>When I'm running my source-line with <code>encoding = "UTF-8"</code>, R gives me an error message:
  <code>INCOMPLETE_STRING</code></p>
  
  <p>The script stops at the first special character (ö).
  Before I run the script, I defined (Windows 10 PC)</p>
  
  <pre><code>Sys.setlocale ("LC_ALL","German")
  [1] "LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252"
  </code></pre>
  
  <p>Running the code manually works when I open the script with UTF-8 encoding. If I understood correctly, I cannot set the locale to UTF-8 on a Windows PC, right? What can I do?</p>