{"action":"created","issue":{"url":"https://api.github.com/repos/mogui/pyorient/issues/142","labels_url":"https://api.github.com/repos/mogui/pyorient/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/mogui/pyorient/issues/142/comments","events_url":"https://api.github.com/repos/mogui/pyorient/issues/142/events","html_url":"https://github.com/mogui/pyorient/pull/142","id":115997788,"number":142,"title":"Updated date and unicode handling code.","user":{"login":"obi1kenobi","id":2348618,"avatar_url":"https://avatars.githubusercontent.com/u/2348618?v=3","gravatar_id":"","url":"https://api.github.com/users/obi1kenobi","html_url":"https://github.com/obi1kenobi","followers_url":"https://api.github.com/users/obi1kenobi/followers","following_url":"https://api.github.com/users/obi1kenobi/following{/other_user}","gists_url":"https://api.github.com/users/obi1kenobi/gists{/gist_id}","starred_url":"https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obi1kenobi/subscriptions","organizations_url":"https://api.github.com/users/obi1kenobi/orgs","repos_url":"https://api.github.com/users/obi1kenobi/repos","events_url":"https://api.github.com/users/obi1kenobi/events{/privacy}","received_events_url":"https://api.github.com/users/obi1kenobi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-10T00:19:37Z","updated_at":"2015-11-10T18:56:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mogui/pyorient/pulls/142","html_url":"https://github.com/mogui/pyorient/pull/142","diff_url":"https://github.com/mogui/pyorient/pull/142.diff","patch_url":"https://github.com/mogui/pyorient/pull/142.patch"},"body":"Partially addresses #129, in that it shows how to avoid the error (see the updated test case) but does not provide a comprehensive solution."},"comment":{"url":"https://api.github.com/repos/mogui/pyorient/issues/comments/155530868","html_url":"https://github.com/mogui/pyorient/pull/142#issuecomment-155530868","issue_url":"https://api.github.com/repos/mogui/pyorient/issues/142","id":155530868,"user":{"login":"obi1kenobi","id":2348618,"avatar_url":"https://avatars.githubusercontent.com/u/2348618?v=3","gravatar_id":"","url":"https://api.github.com/users/obi1kenobi","html_url":"https://github.com/obi1kenobi","followers_url":"https://api.github.com/users/obi1kenobi/followers","following_url":"https://api.github.com/users/obi1kenobi/following{/other_user}","gists_url":"https://api.github.com/users/obi1kenobi/gists{/gist_id}","starred_url":"https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obi1kenobi/subscriptions","organizations_url":"https://api.github.com/users/obi1kenobi/orgs","repos_url":"https://api.github.com/users/obi1kenobi/repos","events_url":"https://api.github.com/users/obi1kenobi/events{/privacy}","received_events_url":"https://api.github.com/users/obi1kenobi/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T18:56:34Z","updated_at":"2015-11-10T18:56:34Z","body":"To be clear, here's what this PR suggests as a partial solution.\r\n\r\nThe binary protocol decoder, on python 2, implicitly decodes received strings to UTF-8. This breaks the \"what you put in is what you get out\" expectation, because a user could put in a `unicode` object but get it back as a UTF-8 encoded `str`. The proposed (clunky but working) fix, for python 2, is that whenever the user expects a particular string object to be of `unicode` type rather than `str`, they should transform it using UTF-8 manually upon receiving it back from `pyorient`. This is exactly how the updated Unicode test works."}}