|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-20 17:39 UTC] tony2001@php.net
[2012-12-20 17:44 UTC] tony2001@php.net
[2012-12-20 17:44 UTC] tony2001@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: tony2001
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
Description: ------------ HaruDoc::createOutline 3rd argument ( encoder ) is always ignored. So I can NOT make japanese outline, We call this is 'Mojibake' problem. Test script: --------------- <?php $doc = new HaruDoc(); $doc->useJPEncodings(); $doc->setPageMode(HaruDoc::PAGE_MODE_USE_OUTLINE); $page = $doc->addPage(); $page->setSize(HaruPage::SIZE_A4,HaruPage::LANDSCAPE); $font = $doc->getFont("Courier-Bold"); $page->setFontAndSize($font,60); $page->beginText(); $page->textOut(210,270,"Hello World"); $page->endText(); $outline_ok = $doc->createOutline("TEST"); $hello_ja = mb_convert_encoding("こんにちは","SJIS-win","UTF-8"); $outline_ng = $doc->createOutline($hello_ja,null,$doc->getEncoder("90ms-RKSJ-H")); $doc->save("test.pdf"); ?> Expected result: ---------------- zend_parse_parameters argument was wrong. NG ) s|o!o! OK ) s|O!O!