{"action":"created","issue":{"url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/5","labels_url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/5/comments","events_url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/5/events","html_url":"https://github.com/nullic/DPLocalizationManager/issues/5","id":55205398,"number":5,"title":"dpstrings.py encoding problem","user":{"login":"creatd","id":993164,"avatar_url":"https://avatars.githubusercontent.com/u/993164?v=3","gravatar_id":"","url":"https://api.github.com/users/creatd","html_url":"https://github.com/creatd","followers_url":"https://api.github.com/users/creatd/followers","following_url":"https://api.github.com/users/creatd/following{/other_user}","gists_url":"https://api.github.com/users/creatd/gists{/gist_id}","starred_url":"https://api.github.com/users/creatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creatd/subscriptions","organizations_url":"https://api.github.com/users/creatd/orgs","repos_url":"https://api.github.com/users/creatd/repos","events_url":"https://api.github.com/users/creatd/events{/privacy}","received_events_url":"https://api.github.com/users/creatd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-22T20:36:52Z","updated_at":"2015-01-26T12:09:37Z","closed_at":"2015-01-26T07:42:00Z","body":"I tried running dpstrings.py with many different variations (no parameter, parameter with absolute and relative paths, with and without quotation marks, one language, multiple languages) but couldn't get rid of the UnicodeDecodeError\r\n\r\nTerminal log below\r\n\r\nEges-MacBook-Pro:FordStore ege$ python dpstrings.py \r\nTraceback (most recent call last):\r\n  File \"dpstrings.py\", line 126, in <module>\r\n    local_strings = DPLocalizableStringsParser().scan_dir(search_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 107, in scan_dir\r\n    self.scan_dir(full_path)\r\n  File \"dpstrings.py\", line 105, in scan_dir\r\n    self.extract_strings(full_path, patterns)\r\n  File \"dpstrings.py\", line 79, in extract_strings\r\n    text = codecs.open(path, encoding='utf-8').read()\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py\", line 671, in read\r\n    return self.reader.read(size)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py\", line 477, in read\r\n    newchars, decodedbytes = self.decode(data, self.errors)\r\nUnicodeDecodeError: 'utf8' codec can't decode byte 0xdf in position 8: invalid continuation byte\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/comments/71451701","html_url":"https://github.com/nullic/DPLocalizationManager/issues/5#issuecomment-71451701","issue_url":"https://api.github.com/repos/nullic/DPLocalizationManager/issues/5","id":71451701,"user":{"login":"creatd","id":993164,"avatar_url":"https://avatars.githubusercontent.com/u/993164?v=3","gravatar_id":"","url":"https://api.github.com/users/creatd","html_url":"https://github.com/creatd","followers_url":"https://api.github.com/users/creatd/followers","following_url":"https://api.github.com/users/creatd/following{/other_user}","gists_url":"https://api.github.com/users/creatd/gists{/gist_id}","starred_url":"https://api.github.com/users/creatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creatd/subscriptions","organizations_url":"https://api.github.com/users/creatd/orgs","repos_url":"https://api.github.com/users/creatd/repos","events_url":"https://api.github.com/users/creatd/events{/privacy}","received_events_url":"https://api.github.com/users/creatd/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T12:09:37Z","updated_at":"2015-01-26T12:09:37Z","body":"Working like a charm now\r\n\r\nThanks mate"}}