A
A
Alexander Zolotykh2017-03-07 21:22:56
R
Alexander Zolotykh, 2017-03-07 21:22:56

Why is renderText not displaying Cyrillic correctly?

OS X
Sample code:

library(shiny)

server <- function(input, output, session) { 
    output$habr <- renderText({
      "Хабрахабр"
    })
  } #the server

ui <- basicPage(fluidPage(
  textOutput("habr")
)) # the user interface

shinyApp(ui = ui, server = server) # this launches your app

8ff5ffa1ac724d749d6b6ff280a9f404.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zolotykh, 2017-03-07
@zolotykh

Helped:
Sys.setlocale("LC_ALL", 'ru_RU.UTF-8')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question