{"action":"opened","issue":{"url":"https://api.github.com/repos/pycroscopy/pycroscopy/issues/163","repository_url":"https://api.github.com/repos/pycroscopy/pycroscopy","labels_url":"https://api.github.com/repos/pycroscopy/pycroscopy/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/pycroscopy/pycroscopy/issues/163/comments","events_url":"https://api.github.com/repos/pycroscopy/pycroscopy/issues/163/events","html_url":"https://github.com/pycroscopy/pycroscopy/issues/163","id":328173797,"node_id":"MDU6SXNzdWUzMjgxNzM3OTc=","number":163,"title":"utf-8 problem with NanonisFile","user":{"login":"donpatrice","id":25233352,"node_id":"MDQ6VXNlcjI1MjMzMzUy","avatar_url":"https://avatars0.githubusercontent.com/u/25233352?v=4","gravatar_id":"","url":"https://api.github.com/users/donpatrice","html_url":"https://github.com/donpatrice","followers_url":"https://api.github.com/users/donpatrice/followers","following_url":"https://api.github.com/users/donpatrice/following{/other_user}","gists_url":"https://api.github.com/users/donpatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/donpatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donpatrice/subscriptions","organizations_url":"https://api.github.com/users/donpatrice/orgs","repos_url":"https://api.github.com/users/donpatrice/repos","events_url":"https://api.github.com/users/donpatrice/events{/privacy}","received_events_url":"https://api.github.com/users/donpatrice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T14:56:27Z","updated_at":"2018-05-31T14:56:27Z","closed_at":null,"author_association":"NONE","body":"I have a sxm file, that causes some problems when reading it with NanonisFile:\r\n```\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 67: invalid start byte\r\n```\r\nI found that the relevant part differs from [nanonispy](https://github.com/underchemist/nanonispy/blob/master/nanonispy/read.py) by\r\n```\r\ntry:\r\n    entry = line.strip().decode()\r\nexcept UnicodeDecodeError:\r\n    warnings.warn('{} has non-uft-8 characters, replacing them.'.format(f.name))\r\n    entry = line.strip().decode('utf-8', errors='replace')\r\n```\r\nIn particular these lines are missing in pycroscopy. Is there a reason for this? Adding these lines solves my problem."}}
{"actor":{"display_login":"donpatrice"}}