{"action":"closed","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1328","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1328/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1328/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1328/events","html_url":"https://github.com/phusion/passenger/issues/1328","id":52472468,"number":1328,"title":"rack request environment variables are allways encoded in ascii-8bit regardless of default_external Encoding ","user":{"login":"dre-hh","id":917602,"avatar_url":"https://avatars.githubusercontent.com/u/917602?v=3","gravatar_id":"","url":"https://api.github.com/users/dre-hh","html_url":"https://github.com/dre-hh","followers_url":"https://api.github.com/users/dre-hh/followers","following_url":"https://api.github.com/users/dre-hh/following{/other_user}","gists_url":"https://api.github.com/users/dre-hh/gists{/gist_id}","starred_url":"https://api.github.com/users/dre-hh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dre-hh/subscriptions","organizations_url":"https://api.github.com/users/dre-hh/orgs","repos_url":"https://api.github.com/users/dre-hh/repos","events_url":"https://api.github.com/users/dre-hh/events{/privacy}","received_events_url":"https://api.github.com/users/dre-hh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phusion/passenger/milestones/17","labels_url":"https://api.github.com/repos/phusion/passenger/milestones/17/labels","id":920363,"number":17,"title":"4.0.58","description":"","creator":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-01-03T11:26:38Z","updated_at":"2015-01-23T09:56:48Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2014-12-19T11:15:54Z","updated_at":"2015-01-23T09:56:48Z","closed_at":"2015-01-23T09:56:48Z","body":"While in a rails controller\r\n\r\n    request.original_url.encoding\r\n     => #<Encoding:ASCII-8BIT>\r\n\r\n    Encoding.default_external\r\n    => #<Encoding:UTF-8>\r\n\r\nThis dilemma would lead to \r\n\r\n     ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8)\r\n\r\nwhen trying to render those vars in a view.\r\n\r\nThere are some closed issues regarding this problem,  e.g #971, however the error still occur.\r\nWe could reproduce this issue on several servers with proper LC_ALL, LANG etc. set to en_US.UTF-8\r\n\r\nThe request environment variables are all encoded properly in UTF-8 when running rails on a develoopment webrick\r\n\r\nUsing Phusion Passenger version 4.0.42 behind nginx/1.6.0 on Debian GNU/Linux 7.5 (wheezy)\r\n\r\n"}}