dbosnj35 Posted April 15, 2010 Share Posted April 15, 2010 I am going crazy, pls help. I have made all as described in documentation. Made copy of english.txt renamed it to croatian.txt then with notepad++ saved it as utf-8 then when I use letters like čćšžđ it displays properly on print preview but in the pdf document sent in email to the customers it dont dispays like it should have. please help, tx 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 16, 2010 Share Posted April 16, 2010 make sure WHMCS and your server is configured to use UTF-8 as the default characters set. 0 Quote Link to comment Share on other sites More sharing options...
dbosnj35 Posted April 16, 2010 Author Share Posted April 16, 2010 tx, yes offcourse it is... any other ideas? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted April 16, 2010 Share Posted April 16, 2010 in notepad++ did you save it as UTF-8 without BOM 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted April 16, 2010 Share Posted April 16, 2010 You can't use "croatian" letters čćž... in PDF files without special fonts... for example: freesans 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 16, 2010 Share Posted April 16, 2010 Looks like he will need to edit his invoice.tpl and add that font then. 0 Quote Link to comment Share on other sites More sharing options...
dbosnj35 Posted April 16, 2010 Author Share Posted April 16, 2010 thank you all, it did the job uploaded fonts and then edited the invoicepdf template to use no serif font TX 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted April 16, 2010 Share Posted April 16, 2010 Since his problem lies within the PDF invoice file, he needs to edit his invoicepdf.tpl template file. Actually it's quite easy: 1. "install" freesans font (copy freesans font files to your includes/fonts folder) 2. edit invoicepdf.tpl file to use that font ( $pdf->SetFont('freesans',''); ) P.S. that will make your PDF files bigger (around 350 KB) since every PDF file that gets created will have to include that font, in order to display croatian letters. And no, you can't "override" that P.P.S. i see you did it already... i'll leave this post, in case anyone else needs it. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.