papai Posted August 5, 2008 Share Posted August 5, 2008 PDF invoice display Unicode character incorrectly. I configured in the back office the parameters for PDF: font times, code CP1258 (for Vietnamese language), but characters in PDF invoice were incorrect.How can I configure this problem. Thanks developer team. Link to comment Share on other sites More sharing options...
papai Posted August 6, 2008 Author Share Posted August 6, 2008 I did the same way as: http://www.prestashop.com/forums/viewreply/15410/for version R3, it worked well, but version 1.0.0.8 doesn’t work.Then I saw that all translation data files (in \themes\prestashop\lang and \translations\vn) were encoded in UTF-8, in version R3. But in V1.0.0.8, they were not encoded in UTF-8. I opened them in editor by UTF-8 encoding, they were displayed incorrectly. So that, all encoding conversion in making PDF invoice files will fail.Can someone help me? Link to comment Share on other sites More sharing options...
middlevn Posted August 27, 2008 Share Posted August 27, 2008 Hi,How about using this php lib instead? I think that temporary you can integrate this lib into /tools directory and use it in the case generating the invoice.http://sourceforge.net/project/showfiles.php?group_id=128076To Prestashop developer: Could you also consider integrate this into the future version? I hope that it would help solving the problems of other languages too. Thanks.Cheers,Middlevn Link to comment Share on other sites More sharing options...
target_locked Posted August 28, 2008 Share Posted August 28, 2008 Hi middlevn,How to use that lib to solve the problem? I downloaded that lib but there are a lot of files inside.Thanks. Link to comment Share on other sites More sharing options...
haibiz Posted August 28, 2008 Share Posted August 28, 2008 hi middervn,can u show us how to use it in detail.thak Link to comment Share on other sites More sharing options...
middlevn Posted August 29, 2008 Share Posted August 29, 2008 Dear guys,Actually, I've just found it while searching in the net. For more information you can reference here:http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdfAlso, there are many examples included in the site that you can try online or you can see the code in the /examples folder of the package. I would be easier for you if you can study from can study from them and the info available on the site. When I have more free time, I will try and show you in details.Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts