Getting ??? symbols instead of special characters when rende



当我在浏览器中打开我的html文件时,一切都呈现得很好,但当我运行闪亮的应用程序时,我得到一个?符号在某些字符应该在的地方。例如,'符号在我的索引页返回这个:应用?s

我想要的:应用程序的

library(shiny)
ui <- fluidPage(
uiOutput("html")
)
server <- function(input, output, session) {
output$html <- renderUI({
tags$iframe(style = "height:800px; width:100%; scrolling=yes", src = "www/index.html")
})
}
shinyApp(ui, server)

我意识到我的错误了。html文件最初是从word文档转换而来的,编码与r不兼容,我只是将编码更改为UTF-8,一切都工作了!

最新更新