我是闪亮的新手,正在尝试输入 html 标签来添加一些标题文本,但包含重音标记的单词(西班牙语中很常见)会导致错误。例如,下面的代码产生了我想要的结果:
\n\nlibrary(shiny)\nui <- fluidPage(\n\n titlePanel("Titles"),\n sidebarLayout(\n sidebarPanel( \n tagList(tags$h4("Geological Survey of Colombia"),\n tags$h2("Analitic Geochemistry Group"),\n tags$p("Text here"))),\n\n # Main panel for displaying outputs ----\n mainPanel()\n )\n )\nserver <- function(input, output) {}\nshinyApp(ui, server)\nRun Code Online (Sandbox Code Playgroud)\n\n但更改tags$h4("Geological Survey of Colombia")会tags$h4("Servicio Geol\xc3\xb3gico Colombiano")导致错误:
Warning in checkEncoding(file) : The input file\n C:\\Users\\cparedes\\Documents\\Shiny\\test/app.R does not seem to be\n encoded in UTF8 Warning in readLines(file, warn = FALSE) : invalid\n input found on input connection\n \'C:\\Users\\cparedes\\Documents\\Shiny\\test/app.R\' Error in parse(file,\n …Run Code Online (Sandbox Code Playgroud) 如何按拉脱维亚语字母顺序对 PostgreSQL 中的文本进行排序,以便任何不带重音的字母始终位于带重音的字母之前?
\n例如这个
\nselect * from (\n select \'b\xc4\x81\' as name\n union select \'\xc4\x81a\'\n union select \'ac\'\n union select \'\xc4\x80b\'\n union select \'\xc4\x80\'\n) t\norder by name COLLATE "lv-x-icu"\nRun Code Online (Sandbox Code Playgroud)\n回报\xc4\x80 \xc4\x81a \xc4\x80b ac b\xc4\x81
但预期结果是ac \xc4\x80 \xc4\x81a \xc4\x80b b\xc4\x81
我尝试创建一些自定义排序规则,但没有一个返回预期结果。
\npostgresql collation sql-order-by alphabetical-sort accent-sensitive