{"action":"opened","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/1395","repository_url":"https://api.github.com/repos/rstudio/shiny","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/1395/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/1395/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/1395/events","html_url":"https://github.com/rstudio/shiny/issues/1395","id":179935693,"number":1395,"title":"a weird bug related to javascript with non-ASCII chars in win7","user":{"login":"shrektan","id":8368933,"avatar_url":"https://avatars.githubusercontent.com/u/8368933?v=3","gravatar_id":"","url":"https://api.github.com/users/shrektan","html_url":"https://github.com/shrektan","followers_url":"https://api.github.com/users/shrektan/followers","following_url":"https://api.github.com/users/shrektan/following{/other_user}","gists_url":"https://api.github.com/users/shrektan/gists{/gist_id}","starred_url":"https://api.github.com/users/shrektan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrektan/subscriptions","organizations_url":"https://api.github.com/users/shrektan/orgs","repos_url":"https://api.github.com/users/shrektan/repos","events_url":"https://api.github.com/users/shrektan/events{/privacy}","received_events_url":"https://api.github.com/users/shrektan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-29T02:08:30Z","updated_at":"2016-09-29T02:08:30Z","closed_at":null,"body":"I will let the example to describe this:\r\n\r\n### The chinese chars in the alert can't show correctly\r\n```r\r\nlibrary(shiny)\r\nrunApp(\r\n  shinyApp(\r\n    ui = tagList(\r\n      tags$head(tags$script(\"type = 'javascript/text'\", \"alert('中文')\")), \r\n      \"test\"\r\n    ),\r\n    server = function(input, output) {}\r\n  )\r\n)\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/8368933/18938618/793ccddc-862c-11e6-8edb-a8a7fec2927f.png)\r\n\r\n### The chinese chars in the alert shows correctly\r\n\r\n```r\r\nlibrary(shiny)\r\nrunApp(\r\n  shinyApp(\r\n    ui = tagList(\r\n      tags$head(tags$script(\"type = 'javascript/text'\", \"alert('中文')\")), \r\n      \"中文\"\r\n    ),\r\n    server = function(input, output) {}\r\n  )\r\n)\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/8368933/18938631/986eac16-862c-11e6-9427-6c1a8057333b.png)\r\n\r\n### my sessionInfo\r\n\r\n```\r\nR version 3.3.1 (2016-06-21)\r\nPlatform: i386-w64-mingw32/i386 (32-bit)\r\nRunning under: Windows 7 x64 (build 7601) Service Pack 1\r\n\r\nlocale:\r\n[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 \r\n[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   \r\n[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936\r\n[4] LC_NUMERIC=C                                                   \r\n[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] shiny_0.14\r\n\r\nloaded via a namespace (and not attached):\r\n [1] R6_2.1.3        htmltools_0.3.5 tools_3.3.1     Rcpp_0.12.7     stringi_1.1.1   jsonlite_1.1   \r\n [7] digest_0.6.10   xtable_1.8-2    httpuv_1.3.3    mime_0.5    \r\n```"}}
{"actor":{"display_login":"shrektan"}}