{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/315","labels_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/315/comments","events_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/315/events","html_url":"https://github.com/aspnet/HttpAbstractions/issues/315","id":82087342,"number":315,"title":"Non-english characters are encoded","user":{"login":"danroth27","id":1874516,"avatar_url":"https://avatars.githubusercontent.com/u/1874516?v=3","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-28T19:19:13Z","updated_at":"2015-05-29T04:31:20Z","closed_at":null,"body":"Reported as https://github.com/aspnet/Razor/issues/409 by @anfomin\r\n\r\nEvery non-english character is encoded. For example:\r\n```razor\r\n@{\r\n\tstring s = \"Добрый день\"; // this is Russian text\r\n}\r\n@s\r\n```\r\n\r\nThe result is something like:\r\n![2015-05-27 9 55 55](https://cloud.githubusercontent.com/assets/1905503/7829109/e6386e18-0456-11e5-8b52-408c3a15dc31.png)\r\n\r\n----\r\n\r\nCharacters displayed correct, but page size increased significantly :-1: Also MVC 5 rendered unicode symbol correctly in HTML source.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/comments/106681896","html_url":"https://github.com/aspnet/HttpAbstractions/issues/315#issuecomment-106681896","issue_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/315","id":106681896,"user":{"login":"anfomin","id":1905503,"avatar_url":"https://avatars.githubusercontent.com/u/1905503?v=3","gravatar_id":"","url":"https://api.github.com/users/anfomin","html_url":"https://github.com/anfomin","followers_url":"https://api.github.com/users/anfomin/followers","following_url":"https://api.github.com/users/anfomin/following{/other_user}","gists_url":"https://api.github.com/users/anfomin/gists{/gist_id}","starred_url":"https://api.github.com/users/anfomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anfomin/subscriptions","organizations_url":"https://api.github.com/users/anfomin/orgs","repos_url":"https://api.github.com/users/anfomin/repos","events_url":"https://api.github.com/users/anfomin/events{/privacy}","received_events_url":"https://api.github.com/users/anfomin/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T04:31:19Z","updated_at":"2015-05-29T04:31:19Z","body":"Every character encoding brings another problems. Sometimes we use `<script>` generation in razor pages like:\r\n\r\n```javascript\r\n<script>\r\n\t$(function() {\r\n\t\tvar someVariable = \"@thisIsDotNetVariable\";\r\n\t\t// other code goes here\r\n\t});\r\n</script>\r\n```\r\n\r\nSo JavaScript will not decode this value and will display unicode numbers."}}