{"action":"opened","issue":{"url":"https://api.github.com/repos/drcoms/drcom-generic/issues/6","labels_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/6/comments","events_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/6/events","html_url":"https://github.com/drcoms/drcom-generic/issues/6","id":92253170,"number":6,"title":"在win下已测试成功，在ubuntu下执行latest-pppoe脚本时出现错误","user":{"login":"yuyuen72","id":3973847,"avatar_url":"https://avatars.githubusercontent.com/u/3973847?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyuen72","html_url":"https://github.com/yuyuen72","followers_url":"https://api.github.com/users/yuyuen72/followers","following_url":"https://api.github.com/users/yuyuen72/following{/other_user}","gists_url":"https://api.github.com/users/yuyuen72/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyuen72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyuen72/subscriptions","organizations_url":"https://api.github.com/users/yuyuen72/orgs","repos_url":"https://api.github.com/users/yuyuen72/repos","events_url":"https://api.github.com/users/yuyuen72/events{/privacy}","received_events_url":"https://api.github.com/users/yuyuen72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T02:51:06Z","updated_at":"2015-07-01T02:51:06Z","closed_at":null,"body":"拨号已成功，只是\r\n\r\nyy@yy-upc:~$ python2 latest-pppoe.py \r\n[*]  open local port:61440\r\n[*]  DEBUG MODE:False\r\n[*]  pppoe: send challenge request\r\n[*]  pppoe: received challenge response\r\n[*]  pppoe: send heartbeat request\r\n[*]  pppoe: received heartbeat response\r\n[*]  [keep-alive2] send1\r\nTraceback (most recent call last):\r\n  File \"latest-pppoe.py\", line 273, in <module>\r\n    main()\r\n  File \"latest-pppoe.py\", line 270, in main\r\n    keep_alive2(s, pppoe)\r\n  File \"latest-pppoe.py\", line 198, in keep_alive2\r\n    data, address = s.recvfrom(1024)\r\n  File \"latest-pppoe.py\", line 79, in recvfrom\r\n    return self.recv()\r\n  File \"latest-pppoe.py\", line 68, in recv\r\n    log('received message packet, dropped. message:' + gbk2utf8(data[4:]))\r\n  File \"latest-pppoe.py\", line 46, in gbk2utf8\r\n    return string.decode('gb2312').encode().decode()\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)\r\nyy@yy-upc:~$ \r\n\r\n不知问题出在那里？"}}