{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/484","id":190936913,"node_id":"MDU6SXNzdWUxOTA5MzY5MTM=","number":484,"title":"Reading markdown templates is not (always) unicode safe","user":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":140343,"node_id":"MDU6TGFiZWwxNDAzNDM=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Major","name":"Major","color":"f44336","default":false,"description":null},{"id":425538403,"node_id":"MDU6TGFiZWw0MjU1Mzg0MDM=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Bug","name":"Bug","color":"FF9800","default":false,"description":null}],"state":"closed","locked":false,"assignees":[],"milestone":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/milestones/30","html_url":"https://github.com/open-cogsci/OpenSesame/milestone/30","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/milestones/30/labels","id":2150840,"node_id":"MDk6TWlsZXN0b25lMjE1MDg0MA==","number":30,"title":"3.1.5 Jazzy James (5th maintenance release)","description":"","creator":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":0,"closed_issues":13,"state":"closed","created_at":"2016-11-22T08:23:22Z","updated_at":"2017-02-06T09:57:18Z","due_on":"2017-01-31T00:00:00Z","closed_at":"2017-02-06T09:57:18Z"},"comments":0,"created_at":"2016-11-22T08:37:17Z","updated_at":"2016-11-23T14:00:23Z","closed_at":"2016-11-23T14:00:23Z","assignee":null,"author_association":"COLLABORATOR","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"When markdown files are read and used as templates, they must first be converted to unicode. If not, a unicode error occurs if either the template or the to-be-inserted text contains non-ascii characters, as is often the case for translated markdown files.\r\n\r\nThis is a typical bad pattern:\r\n\r\n~~~ python\r\nwith open(self.ext_resource(u'update-available.md')) as fd:\r\n\ts = fd.read()\r\n~~~\r\n\r\n Ideally, a `safe_read()` function should be created that handles the conversion.\r\n\r\nOne occurrence was already fixed in f016b3b.","closed_by":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/484/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}