{"action":"created","issue":{"url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/185","labels_url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/185/comments","events_url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/185/events","html_url":"https://github.com/GraylinKim/sc2reader/issues/185","id":65598493,"number":185,"title":"UnicodeDecodeError for LotV beta replay","user":{"login":"StoicLoofah","id":1123311,"avatar_url":"https://avatars.githubusercontent.com/u/1123311?v=3","gravatar_id":"","url":"https://api.github.com/users/StoicLoofah","html_url":"https://github.com/StoicLoofah","followers_url":"https://api.github.com/users/StoicLoofah/followers","following_url":"https://api.github.com/users/StoicLoofah/following{/other_user}","gists_url":"https://api.github.com/users/StoicLoofah/gists{/gist_id}","starred_url":"https://api.github.com/users/StoicLoofah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StoicLoofah/subscriptions","organizations_url":"https://api.github.com/users/StoicLoofah/orgs","repos_url":"https://api.github.com/users/StoicLoofah/repos","events_url":"https://api.github.com/users/StoicLoofah/events{/privacy}","received_events_url":"https://api.github.com/users/StoicLoofah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-01T03:45:41Z","updated_at":"2015-04-04T06:12:07Z","closed_at":null,"body":"From this replay of Puck in a PvZ for the new LotV beta\r\n\r\nhttp://lotv.spawningtool.com/4/download/\r\n\r\n```\r\nPython 3.4.0 (default, Apr 11 2014, 13:05:18) \r\n[GCC 4.8.2] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import sc2reader\r\n>>> replay = sc2reader.load_replay('replays/lotv.SC2Replay')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/kevin/sc2reader/sc2reader/factories/sc2factory.py\", line 85, in load_replay\r\n    return self.load(Replay, source, options, **new_options)\r\n  File \"/home/kevin/sc2reader/sc2reader/factories/sc2factory.py\", line 137, in load\r\n    return self._load(cls, resource, filename=filename, options=options)\r\n  File \"/home/kevin/sc2reader/sc2reader/factories/sc2factory.py\", line 146, in _load\r\n    obj = cls(resource, filename=filename, factory=self, **options)\r\n  File \"/home/kevin/sc2reader/sc2reader/resources.py\", line 271, in __init__\r\n    self._read_data(data_file, self._get_reader(data_file))\r\n  File \"/home/kevin/sc2reader/sc2reader/resources.py\", line 601, in _read_data\r\n    self.raw_data[data_file] = reader(data, self)\r\n  File \"/home/kevin/sc2reader/sc2reader/readers.py\", line 33, in __call__\r\n    ) for i in range(data.read_bits(5))],\r\n  File \"/home/kevin/sc2reader/sc2reader/readers.py\", line 33, in <listcomp>\r\n    ) for i in range(data.read_bits(5))],\r\n  File \"/home/kevin/sc2reader/sc2reader/decoders.py\", line 252, in read_aligned_string\r\n    return self._buffer.read_string(count, encoding)\r\n  File \"/home/kevin/sc2reader/sc2reader/decoders.py\", line 108, in read_string\r\n    return self.read_bytes(count).decode(encoding)\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 33: invalid start byte\r\n```\r\n\r\nCurrently working on fixing it, and I'll try to post a fix if I can figure things out (probably not). Just thought I would share so we could work on these things together"},"comment":{"url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/comments/89510420","html_url":"https://github.com/GraylinKim/sc2reader/issues/185#issuecomment-89510420","issue_url":"https://api.github.com/repos/GraylinKim/sc2reader/issues/185","id":89510420,"user":{"login":"EHadoux","id":1655646,"avatar_url":"https://avatars.githubusercontent.com/u/1655646?v=3","gravatar_id":"","url":"https://api.github.com/users/EHadoux","html_url":"https://github.com/EHadoux","followers_url":"https://api.github.com/users/EHadoux/followers","following_url":"https://api.github.com/users/EHadoux/following{/other_user}","gists_url":"https://api.github.com/users/EHadoux/gists{/gist_id}","starred_url":"https://api.github.com/users/EHadoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EHadoux/subscriptions","organizations_url":"https://api.github.com/users/EHadoux/orgs","repos_url":"https://api.github.com/users/EHadoux/repos","events_url":"https://api.github.com/users/EHadoux/events{/privacy}","received_events_url":"https://api.github.com/users/EHadoux/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T06:12:07Z","updated_at":"2015-04-04T06:12:07Z","body":"It may seems obvious but what is the size of the ```players``` list? If it is 4 it's awkward but if it's 2, the two players of each team may have been merged. In the former case, is ```players[0].units``` equals to ```players[2].units```? I cannot test it myself ATM"}}