title: Shiny: problem with encoding/special characters when launching app through batch-file
body: <p>I'm writing a small batch-script to launch a shinydashboard-app, so people who are not familiar with R can easily access the app. Everything is working so far, except that special characters (namely ä, ö and ü) are not displayed correctly when I'm launching the app through the batch-script. All the R-Files are saved with UTF-8 encoding. Maybe there's an option in the .bat-file that I am missing? I already added to Sys.setlocale()-command to the R-file but that did not solve the problem. I've constructed a small example to illustrate the problem:</p>
  
  <hr>
  
  <p><strong>apptest.R</strong></p>
  
  <pre><code>library(shiny)
  
  Sys.setlocale(category = "LC_ALL", locale = "German")
  
  # Define UI ----
  ui &lt;- fluidPage(
    titlePanel("title panel with ä"),
  
    sidebarLayout(
      sidebarPanel("sidebar panel with ü"),
      mainPanel("main panel with ö")
    )
  )
  
  # Define server logic ----
  server &lt;- function(input, output) {
  
  }
  
  # Run the app ----
  shinyApp(ui = ui, server = server, options = list(port = 7924))
  </code></pre>
  
  <hr>
  
  <p><strong>runAppTest.bat</strong></p>
  
  <pre><code>start "" "C:\Program Files\R\R-3.5.1\bin\Rscript.exe" apptest.R
  SLEEP 5
  start "" http://127.0.0.1:7924
  </code></pre>
  
  <hr>
  
  <p>you might need to adjust C:\Program Files\R\R-3.5.1\bin\Rscript.exe for your version or just put 'Rscript.exe' there if you've added it to your PATH.</p>
  
  <p>If you launch the app through R-Studio you'll see that the letters are displayed correctly. If you do it through the .bat-file it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/6UvAW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6UvAW.png" alt="enter image description here"></a></p>
  
  <p>That looks like an encoding problem to me, but I haven'T been able to solve it. CVan anybody help me in this matter? thanks!</p>