{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/lamernews/issues/162","labels_url":"https://api.github.com/repos/antirez/lamernews/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/antirez/lamernews/issues/162/comments","events_url":"https://api.github.com/repos/antirez/lamernews/issues/162/events","html_url":"https://github.com/antirez/lamernews/issues/162","id":80194899,"number":162,"title":"Error when retrieving UTF-8 strings from database","user":{"login":"JaapJoris","id":9511578,"avatar_url":"https://avatars.githubusercontent.com/u/9511578?v=3","gravatar_id":"","url":"https://api.github.com/users/JaapJoris","html_url":"https://github.com/JaapJoris","followers_url":"https://api.github.com/users/JaapJoris/followers","following_url":"https://api.github.com/users/JaapJoris/following{/other_user}","gists_url":"https://api.github.com/users/JaapJoris/gists{/gist_id}","starred_url":"https://api.github.com/users/JaapJoris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaapJoris/subscriptions","organizations_url":"https://api.github.com/users/JaapJoris/orgs","repos_url":"https://api.github.com/users/JaapJoris/repos","events_url":"https://api.github.com/users/JaapJoris/events{/privacy}","received_events_url":"https://api.github.com/users/JaapJoris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-24T15:50:57Z","updated_at":"2015-05-24T15:50:57Z","closed_at":null,"body":"When submitting a news story that has UTF-8 encoded characters in its title, the submission completes successfully but the resulting redirect produces the following error:\r\n\r\n    ArgumentError at /\r\n    invalid byte sequence in US-ASCII\r\n\r\nFor some reason, it is falsely assumed that strings returned by Redis are ASCII strings. I have fixed this problem in production by adding the following line to `config.ru`:\r\n\r\n    Encoding.default_external = Encoding::UTF_8"}}