{"action":"closed","issue":{"url":"https://api.github.com/repos/JanWielemaker/hdt/issues/4","repository_url":"https://api.github.com/repos/JanWielemaker/hdt","labels_url":"https://api.github.com/repos/JanWielemaker/hdt/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/JanWielemaker/hdt/issues/4/comments","events_url":"https://api.github.com/repos/JanWielemaker/hdt/issues/4/events","html_url":"https://github.com/JanWielemaker/hdt/issues/4","id":259142335,"number":4,"title":"Predicate `hdt_string_id/4' does not deal with Unicode correctly","user":{"login":"wouterbeek","id":1685012,"avatar_url":"https://avatars1.githubusercontent.com/u/1685012?v=4","gravatar_id":"","url":"https://api.github.com/users/wouterbeek","html_url":"https://github.com/wouterbeek","followers_url":"https://api.github.com/users/wouterbeek/followers","following_url":"https://api.github.com/users/wouterbeek/following{/other_user}","gists_url":"https://api.github.com/users/wouterbeek/gists{/gist_id}","starred_url":"https://api.github.com/users/wouterbeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouterbeek/subscriptions","organizations_url":"https://api.github.com/users/wouterbeek/orgs","repos_url":"https://api.github.com/users/wouterbeek/repos","events_url":"https://api.github.com/users/wouterbeek/events{/privacy}","received_events_url":"https://api.github.com/users/wouterbeek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-20T12:18:26Z","updated_at":"2017-09-25T09:07:53Z","closed_at":"2017-09-25T09:07:53Z","author_association":"COLLABORATOR","body":"Predicate `hdt_string_id/4` does not deal with Unicode characters correctly.  As an MWE take the following N-Triples file:\r\n\r\n```n-triples\r\n<x:x> <y:y> \"宇宙\"@ja .\r\n```\r\n\r\nWhen used with the current version on master, we get the following result:\r\n\r\n```prolog\r\n?- test.\r\n\"å®å®\"@ja\r\n```\r\n\r\nPredicate `tets/0` is implemented as follows:\r\n\r\n```prolog\r\n:- use_module(library(hdt)).\r\n\r\ntest :-\r\n  hdt_create_from_file('test.hdt', 'test.nt', []),\r\n  setup_call_cleanup(\r\n    hdt_open(Hdt, 'test.hdt'),\r\n    (\r\n      hdt_string_id(Hdt, object, String, 1),\r\n      format(user_output, \"~s\\n\", [String])\r\n    ),\r\n    hdt_close(Hdt)\r\n  ).\r\n```\r\n"}}
{"actor":{"display_login":"JanWielemaker"}}