{"action":"closed","issue":{"url":"https://api.github.com/repos/kreuzwerker/DKT.huginn/issues/1","repository_url":"https://api.github.com/repos/kreuzwerker/DKT.huginn","labels_url":"https://api.github.com/repos/kreuzwerker/DKT.huginn/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kreuzwerker/DKT.huginn/issues/1/comments","events_url":"https://api.github.com/repos/kreuzwerker/DKT.huginn/issues/1/events","html_url":"https://github.com/kreuzwerker/DKT.huginn/issues/1","id":135703798,"number":1,"title":"CsvAgent encoding issue when consuming events from FtpsiteAgent","user":{"login":"davidwabnitz","id":363486,"avatar_url":"https://avatars.githubusercontent.com/u/363486?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwabnitz","html_url":"https://github.com/davidwabnitz","followers_url":"https://api.github.com/users/davidwabnitz/followers","following_url":"https://api.github.com/users/davidwabnitz/following{/other_user}","gists_url":"https://api.github.com/users/davidwabnitz/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwabnitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwabnitz/subscriptions","organizations_url":"https://api.github.com/users/davidwabnitz/orgs","repos_url":"https://api.github.com/users/davidwabnitz/repos","events_url":"https://api.github.com/users/davidwabnitz/events{/privacy}","received_events_url":"https://api.github.com/users/davidwabnitz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kreuzwerker/DKT.huginn/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"davidwabnitz","id":363486,"avatar_url":"https://avatars.githubusercontent.com/u/363486?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwabnitz","html_url":"https://github.com/davidwabnitz","followers_url":"https://api.github.com/users/davidwabnitz/followers","following_url":"https://api.github.com/users/davidwabnitz/following{/other_user}","gists_url":"https://api.github.com/users/davidwabnitz/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwabnitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwabnitz/subscriptions","organizations_url":"https://api.github.com/users/davidwabnitz/orgs","repos_url":"https://api.github.com/users/davidwabnitz/repos","events_url":"https://api.github.com/users/davidwabnitz/events{/privacy}","received_events_url":"https://api.github.com/users/davidwabnitz/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-23T10:55:21Z","updated_at":"2016-02-24T16:06:09Z","closed_at":"2016-02-24T16:06:09Z","body":"#### Test details\r\n* tested on everything up to 0d4695ddf499c3639099394676803689e9da22ea\r\n\r\n#### Description\r\n##### IS\r\n* Issue with transforming encoding from ASCII-8BIT to UTF-8\r\n\r\n##### SHOULD\r\n* handle encoding issues gracefully by automatic encoding conversion prior to event handling\r\n\r\n#### Steps to reproduce\r\n1. set up FtpsiteAgent to emit events which are consumed by a CsvAgent\r\n2. trigger scenario by adding a file to watched FTP directory\r\n3. will produce exception during receive. See stacktrace:\r\n\r\n```\r\nException during receive. \"\\xC3\" from ASCII-8BIT to UTF-8: /Users/dw/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/json.rb:34:in `encode'\r\n/Users/dw/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/json.rb:34:in `to_json'\r\n```"}}