{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/736","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/736/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/736/events","html_url":"https://github.com/rstudio/shiny/issues/736","id":57603468,"number":736,"title":"Unicode in error messages","user":{"login":"trufanov-nok","id":5746456,"avatar_url":"https://avatars.githubusercontent.com/u/5746456?v=3","gravatar_id":"","url":"https://api.github.com/users/trufanov-nok","html_url":"https://github.com/trufanov-nok","followers_url":"https://api.github.com/users/trufanov-nok/followers","following_url":"https://api.github.com/users/trufanov-nok/following{/other_user}","gists_url":"https://api.github.com/users/trufanov-nok/gists{/gist_id}","starred_url":"https://api.github.com/users/trufanov-nok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trufanov-nok/subscriptions","organizations_url":"https://api.github.com/users/trufanov-nok/orgs","repos_url":"https://api.github.com/users/trufanov-nok/repos","events_url":"https://api.github.com/users/trufanov-nok/events{/privacy}","received_events_url":"https://api.github.com/users/trufanov-nok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-13T14:18:05Z","updated_at":"2015-03-05T03:29:03Z","closed_at":null,"body":"Hi,\r\nI'm using shiny 3.1.2 with RStudio 0.98.1102 under Kubuntu. The system locale is russian.\r\n\r\nWhenever I'm trying to run shiny app which contains errors I'm getting error message that impossible to read due to broken character encoding. That's because error message is written in local language and in Unicode, but webpage is rendered in one of local Russian encodings (KOI8-R for example). AS it do by default if it can't determine encoding automatically. To bypass that I need to press \"open in browser\" button and switch encoding to Unicode in browser. (I'm using FF).\r\nThat's great that errors are written in russian, but could you please add the right encoding tag to generated error webpage ?"},"comment":{"url":"https://api.github.com/repos/rstudio/shiny/issues/comments/77300098","html_url":"https://github.com/rstudio/shiny/issues/736#issuecomment-77300098","issue_url":"https://api.github.com/repos/rstudio/shiny/issues/736","id":77300098,"user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T03:29:03Z","updated_at":"2015-03-05T03:29:03Z","body":"I think you are right that we need to convert the error messages to UTF8 and add `charset=UTF-8` to the content type. I did the explicit conversion in DataTables (https://github.com/rstudio/shiny/blob/8b3ca/R/utils.R#L715), and I did not use `charset=UTF-8` but it still works on Windows. Not quite sure why. We will need more testing."}}