Problem with Cyrillic symbos in orders and invoice

Hello, I starting to use Dolibarr and I want to print invoices and orders, but I have one main problem - cyrillic, when I finished with Customer order and try to print in PDF file have only “?”. I’m from Bulgaria. Did have solution for this problem?
Thank you in advanced!

Hello,

This should be a font problem, I assume that the current font used for generating the PDF cannot handle Cyrillic, so try to use another set of font…

You will find the fonts in your Dolibarr folder…/includes/tcpdf/fonts/

To change the font used for generating PDF, you need to edit the ‘main.lang’ file of the language you are using (you’ll find the file in your Dolibarr…/langs/en_US/main.lang for instance if you use English)

Edit the main.lang file, locate the constant FONTFORPDF at the beginning of the file and change the value to FONTFORPDF=dejavusans for instance if you want to use dejavusans … save the file and try again to generate your PDF… good luck ! wish you will find one font which suits your needs.

If you are unlucky, so you can try with more fonts, just go to the TCPDF website http://sourceforge.net/projects/tcpdf/files/ and download the latest zip package. Then extract only the ‘fonts’ folder from the zip… then copy the files in your Dolibarr installation …/includes/tcpdf/fonts/ so you will get more fonts to play with.

Just make a backup of your files before to modify…

Thank you man! Awesome! The problem was in main.lang file, FONTFORPDF=dejavusans was missing at the begining of file. Once again BIG THANK TO YOU AND DEVELOPER TEAM!

Now I have one more problem with cyrillic. I start to translate system by editing .lang files in language directory, everythig is ok there, but when I add new customer in database, the Ref. number is not correct(incorect symbols). I configure Third party modul with custom mask(Elephant) writen in cyrillic, there is correct but when I add new proposal, order or invoice the number is invalid.
What can i do for this to correct?

Thank you in advanced!

Can you paste an example of cyrillic symbols you used into mask to let us test what’s rong ?

Humphrey: added your post in the wiki:
http://wiki.dolibarr.org/index.php/Create_a_PDF_document_template#Q:My_PDF_template_doesn.27t_understand_foreign_characters.2C_it_outputs_them_as.3F.3F.3F

Hi Irq3000, thank you ! and by the way thanks again for your amazing job with customfields modules.