{"action":"created","issue":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/671","labels_url":"https://api.github.com/repos/MrRio/jsPDF/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/jsPDF/issues/671/comments","events_url":"https://api.github.com/repos/MrRio/jsPDF/issues/671/events","html_url":"https://github.com/MrRio/jsPDF/issues/671","id":126826602,"number":671,"title":"UTF – 8 character support ( Chinese character support )","user":{"login":"sumeetpri","id":8118462,"avatar_url":"https://avatars.githubusercontent.com/u/8118462?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetpri","html_url":"https://github.com/sumeetpri","followers_url":"https://api.github.com/users/sumeetpri/followers","following_url":"https://api.github.com/users/sumeetpri/following{/other_user}","gists_url":"https://api.github.com/users/sumeetpri/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetpri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetpri/subscriptions","organizations_url":"https://api.github.com/users/sumeetpri/orgs","repos_url":"https://api.github.com/users/sumeetpri/repos","events_url":"https://api.github.com/users/sumeetpri/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetpri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-15T08:15:14Z","updated_at":"2016-01-15T16:05:26Z","closed_at":null,"body":"Hi , \r\nI have requirement to support utf-8 character.  I have tried to with Chinese but it did not work . Below is my code , suggest how to support .\r\n\r\n=====================================================\r\n index.html\r\n=====================================================\r\n```html\r\n<!DOCTYPE html>\r\n<html>    \r\n    <head>\r\n        <meta charset=\"UTF-8\">\r\n        <script src=\"http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js\" type=\"text/javascript\"></script>        \r\n        <script  src=\"pdf-lib/dist/jspdf.debug.js\"></script>\r\n    </head>    \r\n    <body>\r\n        <div id=\"content\"> \r\n            <h1>The title goes here 正體字/繁體字</h1> \r\n            <p>The pararaph goes here</p> \r\n            </div><div id=\"page\">            \r\n            </div> \r\n            <button id=\"submit\">Export to  PDF</button>\r\n            <script src=\"script2.js\"></script>\r\n    </body>\r\n</html>\r\n```\r\n================================================\r\n   script2.js\r\n================================================\r\n```javascript\r\nvar doc = new jsPDF(); \r\nvar specialElementHandlers = { \r\n    '#editor': function (element, renderer) { \r\n        return true; \r\n    } \r\n};\r\n$('#submit').click(function () { \r\n    doc.fromHTML($('#content').html(), 15, 15, { \r\n        'width': 190, \r\n            'elementHandlers': specialElementHandlers \r\n    }); \r\n    doc.save('sample-page.pdf'); \r\n});\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/comments/172001469","html_url":"https://github.com/MrRio/jsPDF/issues/671#issuecomment-172001469","issue_url":"https://api.github.com/repos/MrRio/jsPDF/issues/671","id":172001469,"user":{"login":"sumeetpri","id":8118462,"avatar_url":"https://avatars.githubusercontent.com/u/8118462?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetpri","html_url":"https://github.com/sumeetpri","followers_url":"https://api.github.com/users/sumeetpri/followers","following_url":"https://api.github.com/users/sumeetpri/following{/other_user}","gists_url":"https://api.github.com/users/sumeetpri/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetpri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetpri/subscriptions","organizations_url":"https://api.github.com/users/sumeetpri/orgs","repos_url":"https://api.github.com/users/sumeetpri/repos","events_url":"https://api.github.com/users/sumeetpri/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetpri/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T16:05:25Z","updated_at":"2016-01-15T16:05:25Z","body":"Can you give some example how you have used.\nOn Jan 15, 2016 4:46 PM, \"张万程\" <notifications@github.com> wrote:\n\n> I also met this problem, finally I use htmltocanvas convert html to canvas\n> ,then convert to image with canvas.toDataUrl .\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/MrRio/jsPDF/issues/671#issuecomment-171936221>.\n>\n"}}