{"action":"created","issue":{"url":"https://api.github.com/repos/openvstorage/framework/issues/1182","repository_url":"https://api.github.com/repos/openvstorage/framework","labels_url":"https://api.github.com/repos/openvstorage/framework/issues/1182/labels{/name}","comments_url":"https://api.github.com/repos/openvstorage/framework/issues/1182/comments","events_url":"https://api.github.com/repos/openvstorage/framework/issues/1182/events","html_url":"https://github.com/openvstorage/framework/pull/1182","id":190659681,"number":1182,"title":"Handle \\u2019 correct and replace any other non-translated unicode","user":{"login":"khenderick","id":1453214,"avatar_url":"https://avatars.githubusercontent.com/u/1453214?v=3","gravatar_id":"","url":"https://api.github.com/users/khenderick","html_url":"https://github.com/khenderick","followers_url":"https://api.github.com/users/khenderick/followers","following_url":"https://api.github.com/users/khenderick/following{/other_user}","gists_url":"https://api.github.com/users/khenderick/gists{/gist_id}","starred_url":"https://api.github.com/users/khenderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khenderick/subscriptions","organizations_url":"https://api.github.com/users/khenderick/orgs","repos_url":"https://api.github.com/users/khenderick/repos","events_url":"https://api.github.com/users/khenderick/events{/privacy}","received_events_url":"https://api.github.com/users/khenderick/received_events","type":"User","site_admin":false},"labels":[{"id":339407574,"url":"https://api.github.com/repos/openvstorage/framework/labels/state_inprogress","name":"state_inprogress","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T09:22:35Z","updated_at":"2016-11-21T10:11:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openvstorage/framework/pulls/1182","html_url":"https://github.com/openvstorage/framework/pull/1182","diff_url":"https://github.com/openvstorage/framework/pull/1182.diff","patch_url":"https://github.com/openvstorage/framework/pull/1182.patch"},"body":"Damn, I ? unicode..."},"comment":{"url":"https://api.github.com/repos/openvstorage/framework/issues/comments/261896309","html_url":"https://github.com/openvstorage/framework/pull/1182#issuecomment-261896309","issue_url":"https://api.github.com/repos/openvstorage/framework/issues/1182","id":261896309,"user":{"login":"JeffreyDevloo","id":17570109,"avatar_url":"https://avatars.githubusercontent.com/u/17570109?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyDevloo","html_url":"https://github.com/JeffreyDevloo","followers_url":"https://api.github.com/users/JeffreyDevloo/followers","following_url":"https://api.github.com/users/JeffreyDevloo/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyDevloo/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyDevloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyDevloo/subscriptions","organizations_url":"https://api.github.com/users/JeffreyDevloo/orgs","repos_url":"https://api.github.com/users/JeffreyDevloo/repos","events_url":"https://api.github.com/users/JeffreyDevloo/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyDevloo/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T10:11:15Z","updated_at":"2016-11-21T10:11:15Z","body":"The current implementation is fine as it as however it would be more scalable to rely on python to decode our unicode strings.\r\nFor example:\r\n```\r\nIn [1]: a=u\"aaaàçççñññ\"\r\n\r\nIn [2]: type(a)\r\nOut[2]: unicode\r\n\r\nIn [3]: a.encode('ascii','ignore')\r\nOut[3]: 'aaa'\r\n\r\nIn [4]: a.encode('ascii','replace')\r\nOut[4]: 'aaa???????'\r\n\r\nIn [5]: import unicodedata\r\n\r\nIn [6]: unicodedata.normalize('NFKD', a).encode('ascii','ignore')\r\nOut[6]: 'aaaacccnnn'\r\n\r\n```\r\nThe last option with the normalize seems to be ideal as certain characters will get swapped for their 'normal' counterpart."}}
{"actor":{"display_login":"JeffreyDevloo"}}