{"action":"created","issue":{"url":"https://api.github.com/repos/zmap/zgrab/issues/85","labels_url":"https://api.github.com/repos/zmap/zgrab/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/zmap/zgrab/issues/85/comments","events_url":"https://api.github.com/repos/zmap/zgrab/issues/85/events","html_url":"https://github.com/zmap/zgrab/issues/85","id":116080520,"number":85,"title":"Get Garbled when website's charset is gb2312","user":{"login":"qingxp9","id":2822242,"avatar_url":"https://avatars.githubusercontent.com/u/2822242?v=3","gravatar_id":"","url":"https://api.github.com/users/qingxp9","html_url":"https://github.com/qingxp9","followers_url":"https://api.github.com/users/qingxp9/followers","following_url":"https://api.github.com/users/qingxp9/following{/other_user}","gists_url":"https://api.github.com/users/qingxp9/gists{/gist_id}","starred_url":"https://api.github.com/users/qingxp9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingxp9/subscriptions","organizations_url":"https://api.github.com/users/qingxp9/orgs","repos_url":"https://api.github.com/users/qingxp9/repos","events_url":"https://api.github.com/users/qingxp9/events{/privacy}","received_events_url":"https://api.github.com/users/qingxp9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T10:37:49Z","updated_at":"2015-11-10T17:06:38Z","closed_at":null,"body":"i get this output\r\n\r\n> {\"ip\":\"xxxxxx\",\"timestamp\":\"2015-11-10T18:30:44+08:00\",\"data\":{\"read\":\"HTTP/1.1 200 OK\\r\\nDate: Tue, 10 Nov 2015 10:30:45 GMT\\r\\nServer: Apache\\r\\nX-Powered-By: PHP/5.2.17p1\\r\\nContent-Length: 5541\\r\\nConnection: close\\r\\nContent-Type: text/html\\r\\n\\r\\n\\n\\u003c!DOCTYPE html\\u003e\\r\\n\\u003chtml\\u003e\\r\\n        \\u003chead\\u003e\\r\\n        \\u003cmeta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=gb2312\\\" /\\u003e\\r\\n        \\u003cmeta name=\\\"Keywords\\\" content=\\\"360\\ufffd\\ufffd\\ufffdε㿨\\ufffd\\ufffdֵ\\\" /\\u003e\\r\\n        \\u003cmeta name=\\\"Description\\\" content=\\\"360\\ufffd\\ufffd\\ufffdε㿨\\ufffd\\ufffdֵ\\\" /\\u003e\\r\\n        \\u003ctitle\\u003eBitdefender\\ufffd\\ufffd\\ufffd\\ufffd\\ufffd\\ufffd\",\"write\":\"GET / HTTP/1.1\\nHost: 10.142.106.14\\n\\n\"}}\r\n\r\nHow could i do to convert gb2312 ?"},"comment":{"url":"https://api.github.com/repos/zmap/zgrab/issues/comments/155488906","html_url":"https://github.com/zmap/zgrab/issues/85#issuecomment-155488906","issue_url":"https://api.github.com/repos/zmap/zgrab/issues/85","id":155488906,"user":{"login":"dadrian","id":1158264,"avatar_url":"https://avatars.githubusercontent.com/u/1158264?v=3","gravatar_id":"","url":"https://api.github.com/users/dadrian","html_url":"https://github.com/dadrian","followers_url":"https://api.github.com/users/dadrian/followers","following_url":"https://api.github.com/users/dadrian/following{/other_user}","gists_url":"https://api.github.com/users/dadrian/gists{/gist_id}","starred_url":"https://api.github.com/users/dadrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadrian/subscriptions","organizations_url":"https://api.github.com/users/dadrian/orgs","repos_url":"https://api.github.com/users/dadrian/repos","events_url":"https://api.github.com/users/dadrian/events{/privacy}","received_events_url":"https://api.github.com/users/dadrian/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T17:06:38Z","updated_at":"2015-11-10T17:06:38Z","body":"Unfortunately, I think we lose a lot of the data that would be required to recreate this post facto, since Golang will replace any byte sequence that's not valid UTF-8 with the Unicode replacement character. We might be able to detect other encoding and reencode them to UTF-8 before outputting?"}}