{"action":"created","issue":{"url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/10","repository_url":"https://api.github.com/repos/INM-6/h5py_wrapper","labels_url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/10/comments","events_url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/10/events","html_url":"https://github.com/INM-6/h5py_wrapper/issues/10","id":137869329,"number":10,"title":"unicode strings cannot be stored","user":{"login":"mschmidt87","id":6512628,"avatar_url":"https://avatars.githubusercontent.com/u/6512628?v=3","gravatar_id":"","url":"https://api.github.com/users/mschmidt87","html_url":"https://github.com/mschmidt87","followers_url":"https://api.github.com/users/mschmidt87/followers","following_url":"https://api.github.com/users/mschmidt87/following{/other_user}","gists_url":"https://api.github.com/users/mschmidt87/gists{/gist_id}","starred_url":"https://api.github.com/users/mschmidt87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschmidt87/subscriptions","organizations_url":"https://api.github.com/users/mschmidt87/orgs","repos_url":"https://api.github.com/users/mschmidt87/repos","events_url":"https://api.github.com/users/mschmidt87/events{/privacy}","received_events_url":"https://api.github.com/users/mschmidt87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/INM-6/h5py_wrapper/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/INM-6/h5py_wrapper/milestones/3","html_url":"https://github.com/INM-6/h5py_wrapper/milestones/1.0","labels_url":"https://api.github.com/repos/INM-6/h5py_wrapper/milestones/3/labels","id":1636231,"number":3,"title":"1.0","description":null,"creator":{"login":"mschmidt87","id":6512628,"avatar_url":"https://avatars.githubusercontent.com/u/6512628?v=3","gravatar_id":"","url":"https://api.github.com/users/mschmidt87","html_url":"https://github.com/mschmidt87","followers_url":"https://api.github.com/users/mschmidt87/followers","following_url":"https://api.github.com/users/mschmidt87/following{/other_user}","gists_url":"https://api.github.com/users/mschmidt87/gists{/gist_id}","starred_url":"https://api.github.com/users/mschmidt87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschmidt87/subscriptions","organizations_url":"https://api.github.com/users/mschmidt87/orgs","repos_url":"https://api.github.com/users/mschmidt87/repos","events_url":"https://api.github.com/users/mschmidt87/events{/privacy}","received_events_url":"https://api.github.com/users/mschmidt87/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2016-03-10T10:37:57Z","updated_at":"2016-03-10T13:21:05Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-02T13:07:29Z","updated_at":"2016-03-21T08:51:19Z","closed_at":null,"body":"Storing a list of unicode string leads to the following h5py error:\r\n`TypeError: No conversion path for dtype: dtype('<U1')`.\r\n\r\nI haven't understood the background completely. If there is no workaround in h5py, we should at least build in some error catching / conversion code. This error can be reproduced with the additional test added in my personal branch unicode_strings.\r\n"},"comment":{"url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/comments/199180516","html_url":"https://github.com/INM-6/h5py_wrapper/issues/10#issuecomment-199180516","issue_url":"https://api.github.com/repos/INM-6/h5py_wrapper/issues/10","id":199180516,"user":{"login":"mschmidt87","id":6512628,"avatar_url":"https://avatars.githubusercontent.com/u/6512628?v=3","gravatar_id":"","url":"https://api.github.com/users/mschmidt87","html_url":"https://github.com/mschmidt87","followers_url":"https://api.github.com/users/mschmidt87/followers","following_url":"https://api.github.com/users/mschmidt87/following{/other_user}","gists_url":"https://api.github.com/users/mschmidt87/gists{/gist_id}","starred_url":"https://api.github.com/users/mschmidt87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschmidt87/subscriptions","organizations_url":"https://api.github.com/users/mschmidt87/orgs","repos_url":"https://api.github.com/users/mschmidt87/repos","events_url":"https://api.github.com/users/mschmidt87/events{/privacy}","received_events_url":"https://api.github.com/users/mschmidt87/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T08:51:19Z","updated_at":"2016-03-21T08:51:19Z","body":"Okay, I think our policy should be this:\r\n\r\n- We should support unicode if it can be encoded in ASCII, i.e., if\r\n    x.encode('ascii') does not throw an error.\r\n   For this, we encode all unicode objects to ascii before saving. When the data is loaded, it is then loaded as a string. In the solution of #11 , we could make it possible to load the data as unicode again.\r\n"}}