{"action":"created","issue":{"url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/33","repository_url":"https://api.github.com/repos/danfengcao/binlog2sql","labels_url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/33/comments","events_url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/33/events","html_url":"https://github.com/danfengcao/binlog2sql/issues/33","id":335154471,"node_id":"MDU6SXNzdWUzMzUxNTQ0NzE=","number":33,"title":"UnicodeDecodeError: 'utf-8' codec can't decode byte xxx","user":{"login":"ericwtlin","id":11568066,"node_id":"MDQ6VXNlcjExNTY4MDY2","avatar_url":"https://avatars1.githubusercontent.com/u/11568066?v=4","gravatar_id":"","url":"https://api.github.com/users/ericwtlin","html_url":"https://github.com/ericwtlin","followers_url":"https://api.github.com/users/ericwtlin/followers","following_url":"https://api.github.com/users/ericwtlin/following{/other_user}","gists_url":"https://api.github.com/users/ericwtlin/gists{/gist_id}","starred_url":"https://api.github.com/users/ericwtlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericwtlin/subscriptions","organizations_url":"https://api.github.com/users/ericwtlin/orgs","repos_url":"https://api.github.com/users/ericwtlin/repos","events_url":"https://api.github.com/users/ericwtlin/events{/privacy}","received_events_url":"https://api.github.com/users/ericwtlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-24T06:14:50Z","updated_at":"2018-07-03T09:16:03Z","closed_at":null,"author_association":"NONE","body":"python binlog2sql/binlog2sql.py xxxxxxxxxxx --start-file='mysqld.000006' --start-datetime='2018-06-24 13:30:00' --start-position=170802294 -B >callback_script.sql\r\n报错：（代码已更新至目前——20180624 14:16时的master版本）\r\nTraceback (most recent call last):\r\n  File \"binlog2sql/binlog2sql.py\", line 150, in <module>\r\n    binlog2sql.process_binlog()\r\n  File \"binlog2sql/binlog2sql.py\", line 121, in process_binlog\r\n    self.print_rollback_sql(filename=tmp_file)\r\n  File \"binlog2sql/binlog2sql.py\", line 129, in print_rollback_sql\r\n    for line in reversed_lines(f_tmp):\r\n  File \"/root/softwares/binlog2sql/binlog2sql/binlog2sql_util.py\", line 243, in reversed_lines\r\n    block = block.decode(\"utf-8\")\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte\r\n\r\n不加-B的话，能够正常解析出错误的操作，但是加了-B就报上面的错误，内容是中文，有一些有全角或半角的中文符号"},"comment":{"url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/comments/402069969","html_url":"https://github.com/danfengcao/binlog2sql/issues/33#issuecomment-402069969","issue_url":"https://api.github.com/repos/danfengcao/binlog2sql/issues/33","id":402069969,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjA2OTk2OQ==","user":{"login":"weathery","id":8264089,"node_id":"MDQ6VXNlcjgyNjQwODk=","avatar_url":"https://avatars3.githubusercontent.com/u/8264089?v=4","gravatar_id":"","url":"https://api.github.com/users/weathery","html_url":"https://github.com/weathery","followers_url":"https://api.github.com/users/weathery/followers","following_url":"https://api.github.com/users/weathery/following{/other_user}","gists_url":"https://api.github.com/users/weathery/gists{/gist_id}","starred_url":"https://api.github.com/users/weathery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weathery/subscriptions","organizations_url":"https://api.github.com/users/weathery/orgs","repos_url":"https://api.github.com/users/weathery/repos","events_url":"https://api.github.com/users/weathery/events{/privacy}","received_events_url":"https://api.github.com/users/weathery/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T09:16:03Z","updated_at":"2018-07-03T09:16:03Z","author_association":"NONE","body":"![image](https://user-images.githubusercontent.com/8264089/42210886-bbe17b08-7ee4-11e8-9c73-be0c5f291ca1.png)\r\n"}}
{"actor":{"display_login":"weathery"}}