{"action":"created","issue":{"url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/108","labels_url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/108/comments","events_url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/108/events","html_url":"https://github.com/mikehaertl/phpwkhtmltopdf/issues/108","id":90333101,"number":108,"title":"Problems for printing UTF-8 characters on footer/ header","user":{"login":"newpen","id":6116163,"avatar_url":"https://avatars.githubusercontent.com/u/6116163?v=3","gravatar_id":"","url":"https://api.github.com/users/newpen","html_url":"https://github.com/newpen","followers_url":"https://api.github.com/users/newpen/followers","following_url":"https://api.github.com/users/newpen/following{/other_user}","gists_url":"https://api.github.com/users/newpen/gists{/gist_id}","starred_url":"https://api.github.com/users/newpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newpen/subscriptions","organizations_url":"https://api.github.com/users/newpen/orgs","repos_url":"https://api.github.com/users/newpen/repos","events_url":"https://api.github.com/users/newpen/events{/privacy}","received_events_url":"https://api.github.com/users/newpen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-23T09:19:46Z","updated_at":"2015-07-07T07:23:31Z","closed_at":null,"body":"I am now generating PDF with Chinese characters on both its header and footer:\r\n\r\n``` \r\n$title = '中文字';\r\n\r\n$options = array(\t\t\r\n\t\t'encoding' => 'UTF-8',  // option with argument\r\n\t\t'header-left' => $title,\t\t\r\n\t\t'footer-html' => 'footer.html',\t\t\r\n\t\t'replace' => array(\r\n\t\t\t'title' =>$title\r\n\t\t),\r\n\t);\r\n```\t\r\n\r\nCurrently, the header can print out the characters fine, but for the footer, that I include an external html file for it and pass it through `replace`, the characters printed out becomes unrecognizable.\r\n\r\nI already have \r\n`<meta content=\"text/html;charset=utf-8\" http-equiv=\"Content-Type\">`\r\n`<meta content=\"utf-8\" http-equiv=\"encoding\">` \r\ninside the head tag of my footer.html file. How can I solve this? Thank you very much."},"comment":{"url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/comments/119101927","html_url":"https://github.com/mikehaertl/phpwkhtmltopdf/issues/108#issuecomment-119101927","issue_url":"https://api.github.com/repos/mikehaertl/phpwkhtmltopdf/issues/108","id":119101927,"user":{"login":"newpen","id":6116163,"avatar_url":"https://avatars.githubusercontent.com/u/6116163?v=3","gravatar_id":"","url":"https://api.github.com/users/newpen","html_url":"https://github.com/newpen","followers_url":"https://api.github.com/users/newpen/followers","following_url":"https://api.github.com/users/newpen/following{/other_user}","gists_url":"https://api.github.com/users/newpen/gists{/gist_id}","starred_url":"https://api.github.com/users/newpen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newpen/subscriptions","organizations_url":"https://api.github.com/users/newpen/orgs","repos_url":"https://api.github.com/users/newpen/repos","events_url":"https://api.github.com/users/newpen/events{/privacy}","received_events_url":"https://api.github.com/users/newpen/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T07:23:31Z","updated_at":"2015-07-07T07:23:31Z","body":"@mikehaertl No. I am using it on a Ubuntu VM.\r\nvardump($val) returns `string(11) \"en_US.UTF-8\" `"}}