孟加拉语在我的闪亮应用程序中不起作用
问题描述:
在我闪亮的应用程序中,我使用孟加拉语但不起作用。我遵循那里的文档,保存UTF-8编码,但以ui.R结尾,不以UTF-8编码。孟加拉语在我的闪亮应用程序中不起作用
这是我最小的骨架:
shinyUI(fluidPage(
# Application title
titlePanel("তথ্যসংগ্রহ"),
sidebarPanel(
),
mainPanel(
)
)
)
这里是我的会话信息:
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
答
我明白你有麻烦正确观看字符的方式?你可以尝试几件事情。
你可以尝试迫使闪亮的页面编码utf-8
通过设置元charset属性,如:
shinyUI(fluidPage(
tags$head(
tags$script(HTML("
$('html > head').append('<meta charset=\"UTF-8\"/>');
# To see where tag ends up
$('html > head').append('<meta test=\"Yupp\"/>');
"))
),
# Application title
titlePanel("তথ্যসংগ্রহ"),
sidebarPanel(
),
mainPanel()
))
或者你可以将R编码,如:
options(encoding = 'UTF-8')
终于还是你能尝试拨打Sys.setlocale
Sys.setlocale("LC_COLLATE","bd_BD")
不幸的是,我无法测试th因为我无法重现错误。
跨发布在https://groups.google.com/d/msg/shiny-discuss/4efvdxExXE4/wdu9ECijCwAJ –