{"action":"created","issue":{"url":"https://api.github.com/repos/HDFGroup/h5serv/issues/48","labels_url":"https://api.github.com/repos/HDFGroup/h5serv/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/HDFGroup/h5serv/issues/48/comments","events_url":"https://api.github.com/repos/HDFGroup/h5serv/issues/48/events","html_url":"https://github.com/HDFGroup/h5serv/pull/48","id":74002765,"number":48,"title":"Assigning Unicode string objects to string datasets","user":{"login":"ajelenak-thg","id":7944846,"avatar_url":"https://avatars.githubusercontent.com/u/7944846?v=3","gravatar_id":"","url":"https://api.github.com/users/ajelenak-thg","html_url":"https://github.com/ajelenak-thg","followers_url":"https://api.github.com/users/ajelenak-thg/followers","following_url":"https://api.github.com/users/ajelenak-thg/following{/other_user}","gists_url":"https://api.github.com/users/ajelenak-thg/gists{/gist_id}","starred_url":"https://api.github.com/users/ajelenak-thg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajelenak-thg/subscriptions","organizations_url":"https://api.github.com/users/ajelenak-thg/orgs","repos_url":"https://api.github.com/users/ajelenak-thg/repos","events_url":"https://api.github.com/users/ajelenak-thg/events{/privacy}","received_events_url":"https://api.github.com/users/ajelenak-thg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T14:18:48Z","updated_at":"2015-05-07T16:04:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HDFGroup/h5serv/pulls/48","html_url":"https://github.com/HDFGroup/h5serv/pull/48","diff_url":"https://github.com/HDFGroup/h5serv/pull/48.diff","patch_url":"https://github.com/HDFGroup/h5serv/pull/48.patch"},"body":"These changes fix this issue: HDFGroup/hpd-ws#26.\r\n\r\nI traced the problem to assignment of a Unicode string object, e.g. ``u\"Hello world!\"`` to an already created dataset of the ASCII datatype (per its JSON information). When the json package converts JSON to Python dictionary all strings, its keys and string values, are Unicode string objects.\r\n\r\nThe crux of the changes are:\r\n\r\n1. Allow conversion of every string value from JSON into the Python's str object.\r\n1. Do not accept H5T_STRING object values from JSON as-is.\r\n\r\nI would keep this branch alive for testing when assigning str or unicode objects to UTF-8 string datasets."},"comment":{"url":"https://api.github.com/repos/HDFGroup/h5serv/issues/comments/99922942","html_url":"https://github.com/HDFGroup/h5serv/pull/48#issuecomment-99922942","issue_url":"https://api.github.com/repos/HDFGroup/h5serv/issues/48","id":99922942,"user":{"login":"ajelenak-thg","id":7944846,"avatar_url":"https://avatars.githubusercontent.com/u/7944846?v=3","gravatar_id":"","url":"https://api.github.com/users/ajelenak-thg","html_url":"https://github.com/ajelenak-thg","followers_url":"https://api.github.com/users/ajelenak-thg/followers","following_url":"https://api.github.com/users/ajelenak-thg/following{/other_user}","gists_url":"https://api.github.com/users/ajelenak-thg/gists{/gist_id}","starred_url":"https://api.github.com/users/ajelenak-thg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajelenak-thg/subscriptions","organizations_url":"https://api.github.com/users/ajelenak-thg/orgs","repos_url":"https://api.github.com/users/ajelenak-thg/repos","events_url":"https://api.github.com/users/ajelenak-thg/events{/privacy}","received_events_url":"https://api.github.com/users/ajelenak-thg/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T16:04:39Z","updated_at":"2015-05-07T16:04:39Z","body":"I apologize for the \"white noise\" of changes. Can you configure your text editor to remove all the excess white space?\r\n\r\nI put \"Here!\" to mark relevant code changes."}}