How put accents en Shiny app

550 views
Skip to first unread message

Andrés Felipe Flórez Rivera

unread,
Jun 10, 2014, 9:18:52 PM6/10/14
to shiny-...@googlegroups.com
Hi, I'm writing my shiny app in spanish, so when I put accents the text look like
 "elicitaci�n" and the correct form is "elicitación". How I can do for my text appear correctly.


Thanks!

Yihui Xie

unread,
Jun 10, 2014, 9:31:32 PM6/10/14
to Andrés Felipe Flórez Rivera, shiny-discuss
Are you using Windows and running your app via shiny::runApp() locally
or via Shiny Server? Please provide the output of library(shiny);
sessionInfo().

Regards,
Yihui

Andrés Felipe Flórez Rivera

unread,
Jun 10, 2014, 9:49:54 PM6/10/14
to Yihui Xie, shiny-discuss
Hi Yihui Xie, thanks for your time. Yeah, I'm using Windows and I'm running this app  with shiny::runApp() locally:

shiny::runApp(list(
  ui = pageWithSidebar(
    headerPanel("Elicitación de Expertos"),
    sidebarPanel(
      actionButton("test","Nueva Elicitación")),
    mainPanel(
      tableOutput("value"))
  ),   
  server = function(input,output){

  }
))


Regards,



Andrés.








--

ANDRÉS FELIPE FLÓREZ RIVERA
ESTADÍSTICO
UNIVERSIDAD NACIONAL DE COLOMBIA.

Andrés Felipe Flórez Rivera

unread,
Jun 10, 2014, 10:21:17 PM6/10/14
to Yihui Xie, shiny-discuss
In html I know that is something like "charset=utf-8" but in Shiny I dont know how do it

Joe Cheng

unread,
Jun 11, 2014, 12:44:21 PM6/11/14
to Andrés Felipe Flórez Rivera, Yihui Xie, shiny-discuss
Can you try saving ui.R with UTF-8 encoding? If you're using RStudio, you can use "File | Save with Encoding...".


--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yihui Xie

unread,
Jun 13, 2014, 7:59:43 PM6/13/14
to Andrés Felipe Flórez Rivera, shiny-discuss
Eventually we tried to solve the problem of multi-byte characters
under Windows, and we will really appreciate it if you can help us
test it:

if (!require("devtools")) install.packages("devtools")
devtools::install_github("yihui/shiny@bugfix/windows-encoding")

I have tested your example under Windows, and it seems to be working now.

Regards,
Yihui


On Tue, Jun 10, 2014 at 9:21 PM, Andrés Felipe Flórez Rivera
Reply all
Reply to author
Forward
0 new messages