-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF-8 related bug in verbatimTextOutput? #2135
Comments
Hi, thanks for the question. Have you tried saving your text files with encoding? Here's an article all about UTF-8 on Windows with Shiny: Let me know if that helps. |
What text file are you referring to here @tmastny? |
I was able to reproduce this on Windows 10. The culprit appears to be > utils::capture.output(print("папка0"))
[1] "[1] \"<U+043F><U+0430><U+043F><U+043A><U+0430>0\"" Unfortunately it doesn't appear to be a problem we can easily fix. According to @krlmlr, UTF-8 characters outside the current locale don't survive a roundtrip via R's connection interface. Since This is a related issue with the same cause: r-lib/evaluate#59 |
I was going to say you can work around this by using |
I'm moving this to the 1.3 milestone. At best maybe we can detect cases where |
The string "папка0" (Russian for "folder0") prints out fine in Rstudio and Shiny on macOS. However, on Windows it only prints OK in RStudio but not in Shiny verbatimTextOuput. See below code and screenshot below. I checked that the encoding of the string is UTF-8. Is this a bug in shiny?
FYI: Also posted @ https://community.rstudio.com/t/windows-encoding-utf-8-in-shiny-verbatimtextouptut/11329
Session Info:
The text was updated successfully, but these errors were encountered: