ezakimak Posted July 7, 2010 Share Posted July 7, 2010 Hi, can anybody tell me where to start looking to try to solve this issue. In PDF document generated for invoices and the like, all kanji characters are displayed as "???" , but in the BO and FO forms pages they are shown correctlythanks for any help Link to comment Share on other sites More sharing options...
rocky Posted July 7, 2010 Share Posted July 7, 2010 See my post here. Link to comment Share on other sites More sharing options...
ezakimak Posted July 7, 2010 Author Share Posted July 7, 2010 thanks for the reply, but I think I will need an utf-8 enconding but there is not utf-8 in the map encoding list.i'll keep searching Link to comment Share on other sites More sharing options...
virtulian Posted May 31, 2012 Share Posted May 31, 2012 have you found any solution for this error? Link to comment Share on other sites More sharing options...
virtulian Posted June 14, 2012 Share Posted June 14, 2012 kindly can any body tell me about this how I can show Japanese character in pdf I tried all ways Regards Link to comment Share on other sites More sharing options...
tuk66 Posted July 12, 2012 Share Posted July 12, 2012 have you found any solution for this error? The M4 PDF Extensions module displays Japanese characters in PDF correctly (and Chinese, Korean and characters from rest of the world too). Link to comment Share on other sites More sharing options...
SerjLeon Posted January 28, 2013 Share Posted January 28, 2013 SOLUTION FOUND (v.1.5.3) It works if you have the localization pack. (can be downloaded any time through BO) So in the case of Japanese, I did next: /classes/pdf/PDFGenerator.php line35 const DEFAULT_FONT = 'helvetica'; replace 'helvetica' with 'cid0jp' DONE. Your invoices now show Japanese properly. 2 Link to comment Share on other sites More sharing options...
moraira Posted September 1, 2015 Share Posted September 1, 2015 (edited) Great solution, running ok in prestashop 1.6.1 change in /classes/pdf/PDFGenerator.php class PDFGeneratorCore extends TCPDF { const DEFAULT_FONT = 'helvetica'; public $header; public $footer; public $content; ... for class PDFGeneratorCore extends TCPDF { const DEFAULT_FONT = 'cid0jp'; public $header; public $footer; public $content; ... Edited September 1, 2015 by moraira (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now