{"action":"closed","issue":{"url":"https://api.github.com/repos/aaren/pandoc-reference-filter/issues/9","labels_url":"https://api.github.com/repos/aaren/pandoc-reference-filter/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/aaren/pandoc-reference-filter/issues/9/comments","events_url":"https://api.github.com/repos/aaren/pandoc-reference-filter/issues/9/events","html_url":"https://github.com/aaren/pandoc-reference-filter/issues/9","id":56861408,"number":9,"title":"Fails to parse unicode in captions","user":{"login":"EricThrift","id":9208157,"avatar_url":"https://avatars.githubusercontent.com/u/9208157?v=3","gravatar_id":"","url":"https://api.github.com/users/EricThrift","html_url":"https://github.com/EricThrift","followers_url":"https://api.github.com/users/EricThrift/followers","following_url":"https://api.github.com/users/EricThrift/following{/other_user}","gists_url":"https://api.github.com/users/EricThrift/gists{/gist_id}","starred_url":"https://api.github.com/users/EricThrift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricThrift/subscriptions","organizations_url":"https://api.github.com/users/EricThrift/orgs","repos_url":"https://api.github.com/users/EricThrift/repos","events_url":"https://api.github.com/users/EricThrift/events{/privacy}","received_events_url":"https://api.github.com/users/EricThrift/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-06T20:09:01Z","updated_at":"2015-03-11T16:18:57Z","closed_at":"2015-03-11T16:18:57Z","body":"The function replace_references() throws an error if the figure captions contain any non-ascii characters. This seems to be the case even with quotation marks, dashes and the like, which are converted by the `--smart` option in pandoc.\r\n\r\n```\r\nFile \"build/bdist.linux-i686/egg/internalreferences/internalreferences.py\", line 236, in figure_replacement\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 7: ordinal not in range(128)\r\npandoc: Error running filter internal-references\r\n```"}}