{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/286","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/286/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/286/events","html_url":"https://github.com/htacg/tidy-html5/issues/286","id":111569060,"number":286,"title":"clean options bug","user":{"login":"chg365","id":13881994,"avatar_url":"https://avatars.githubusercontent.com/u/13881994?v=3","gravatar_id":"","url":"https://api.github.com/users/chg365","html_url":"https://github.com/chg365","followers_url":"https://api.github.com/users/chg365/followers","following_url":"https://api.github.com/users/chg365/following{/other_user}","gists_url":"https://api.github.com/users/chg365/gists{/gist_id}","starred_url":"https://api.github.com/users/chg365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chg365/subscriptions","organizations_url":"https://api.github.com/users/chg365/orgs","repos_url":"https://api.github.com/users/chg365/repos","events_url":"https://api.github.com/users/chg365/events{/privacy}","received_events_url":"https://api.github.com/users/chg365/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T08:34:53Z","updated_at":"2015-10-15T14:59:53Z","closed_at":null,"body":"tidy -utf8 -clean test.html\r\nout print : \r\n```\r\n<style type=\"text/css\">\r\n span.c2 {color: rgb(255, 0, 0); font-family: å®�ä½�; font-size: 20px}\r\n span.c1 {font-family: æ�¹æ­£ä»¿å®�; font-size: 36px}\r\n\r\nfont-family: ....   is error\r\n```\r\n\r\ntest.html\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n    <title>test</title>\r\n</head>\r\n<body>\r\n    测试\r\n    <span style=\"font-size:36px;\">\r\n        <span style=\"font-family: 方正仿宋;\">测试</span>\r\n    </span>\r\n    <span style=\"font-size:20px;\">\r\n        <span style=\"color: rgb(255, 0, 0);\">\r\n            <span style=\"font-family: 宋体;\">测试</span>\r\n        </span>\r\n    </span>\r\n    <script type=\"javascript\">alert(\"aaaaaaaaaa\");</script>\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/148412676","html_url":"https://github.com/htacg/tidy-html5/issues/286#issuecomment-148412676","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/286","id":148412676,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T14:59:53Z","updated_at":"2015-10-15T14:59:53Z","body":"@chg365 ok, now have a valid utf-8 file to test...\r\n\r\nWow, yes the -clean option really mangles the valid utf-8 when transferring the text from the span to the generated css string...\r\n\r\nNow to try to solve the problem...\r\n"}}