标签: accent-sensitive

R-Shiny 应用程序中的重音符号

我是闪亮的新手,正在尝试输入 html 标签来添加一些标题文本,但包含重音标记的单词(西班牙语中很常见)会导致错误。例如,下面的代码产生了我想要的结果:

\n\n
library(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)\n
Run Code Online (Sandbox Code Playgroud)\n\n

但更改tags$h4("Geological Survey of Colombia")tags$h4("Servicio Geol\xc3\xb3gico Colombiano")导致错误:

\n\n
 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)

r shiny accent-sensitive

3
推荐指数
1
解决办法
2546
查看次数

PostgreSQL 中的重音敏感排序

如何按拉脱维亚语字母顺序对 PostgreSQL 中的文本进行排序,以便任何不带重音的字母始终位于带重音的字母之前?

\n

例如这个

\n
select * 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"\n
Run Code Online (Sandbox Code Playgroud)\n

回报\xc4\x80 \xc4\x81a \xc4\x80b ac b\xc4\x81

\n

但预期结果是ac \xc4\x80 \xc4\x81a \xc4\x80b b\xc4\x81

\n

我尝试创建一些自定义排序规则,但没有一个返回预期结果。

\n

postgresql collation sql-order-by alphabetical-sort accent-sensitive

2
推荐指数
1
解决办法
167
查看次数