{"action":"created","issue":{"url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/109","labels_url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/109/comments","events_url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/109/events","html_url":"https://github.com/zestsoftware/zest.releaser/issues/109","id":86584445,"number":109,"title":"Support non-ASCII changelog files","user":{"login":"wosc","id":577891,"avatar_url":"https://avatars.githubusercontent.com/u/577891?v=3","gravatar_id":"","url":"https://api.github.com/users/wosc","html_url":"https://github.com/wosc","followers_url":"https://api.github.com/users/wosc/followers","following_url":"https://api.github.com/users/wosc/following{/other_user}","gists_url":"https://api.github.com/users/wosc/gists{/gist_id}","starred_url":"https://api.github.com/users/wosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wosc/subscriptions","organizations_url":"https://api.github.com/users/wosc/orgs","repos_url":"https://api.github.com/users/wosc/repos","events_url":"https://api.github.com/users/wosc/events{/privacy}","received_events_url":"https://api.github.com/users/wosc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T12:35:59Z","updated_at":"2015-06-10T21:48:46Z","closed_at":null,"body":"Before the Python-3 support came in, zest.releaser seemed to handle non-ASCII changelog files just fine (I never had any issues), but now I get this error:\r\n\r\n```\r\n  File \"/home/wosc/install/zest/local/lib/python2.7/site-packages/zest.releaser-5.0-py2.7.egg/zest/releaser/prerelease.py\", line 71, in execute\r\n    self._write_history()\r\n  File \"/home/wosc/install/zest/local/lib/python2.7/site-packages/zest.releaser-5.0-py2.7.egg/zest/releaser/prerelease.py\", line 161, in _write_history\r\n    open(history, 'wb').write(contents)\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 9914: ordinal not in range(128)\r\n```\r\n\r\nI've locally added `contents.encode('utf-8')` as a workaround, but I must confess, I'm not sure what a generic solution would look like -- and what the previous behaviour actually was (I'm guessing some kind of default encoding behaviour?)."},"comment":{"url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/comments/110924890","html_url":"https://github.com/zestsoftware/zest.releaser/issues/109#issuecomment-110924890","issue_url":"https://api.github.com/repos/zestsoftware/zest.releaser/issues/109","id":110924890,"user":{"login":"mauritsvanrees","id":210587,"avatar_url":"https://avatars.githubusercontent.com/u/210587?v=3","gravatar_id":"","url":"https://api.github.com/users/mauritsvanrees","html_url":"https://github.com/mauritsvanrees","followers_url":"https://api.github.com/users/mauritsvanrees/followers","following_url":"https://api.github.com/users/mauritsvanrees/following{/other_user}","gists_url":"https://api.github.com/users/mauritsvanrees/gists{/gist_id}","starred_url":"https://api.github.com/users/mauritsvanrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauritsvanrees/subscriptions","organizations_url":"https://api.github.com/users/mauritsvanrees/orgs","repos_url":"https://api.github.com/users/mauritsvanrees/repos","events_url":"https://api.github.com/users/mauritsvanrees/events{/privacy}","received_events_url":"https://api.github.com/users/mauritsvanrees/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T21:48:46Z","updated_at":"2015-06-10T21:48:46Z","body":"I think I have fixed it in the above commit for Python 2 and 3."}}