rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
712 stars 290 forks source link

Encoding problem shiny app on Shiny Server #520

Closed rwaaijman closed 2 years ago

rwaaijman commented 2 years ago

Hi rstudio, with the new shiny-server version (v1.5.18.979) there seems to be a problem with encoding characters when loaded a file with source(). The app attached to this message is packed into rocker-shiny verse to illustrate the problem. This issue not only appears in shiny-verse 4.1.3, but also in other versions like 4.0.5.

app.zip

See more replies in:https://github.com/rocker-org/rocker-versioned2/issues/397

rwaaijman commented 2 years ago

LC_ALL=en_US.UTF-8 has to be set in docker. For more info see: https://github.com/rocker-org/rocker-versioned2/issues/397

eitsupi commented 2 years ago

@rwaaijman Please do not close this issue. I'm not sure why this problem only occurs in scripts loaded with source().

Also, the workaround is not to set LC_ALL=en_US.UTF-8 but as described in the comments below. https://github.com/rstudio/shiny-server/issues/304#issuecomment-313785524