Identification



Welcome, Guest
Please Login or Register.    Lost Password?

Problem with Cyrillic symbos in orders and invoice
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Problem with Cyrillic symbos in orders and invoice
#21109
Problem with Cyrillic symbos in orders and invoice 8 Months, 2 Weeks ago Karma: 0
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!
urandom
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21110
Re:Problem with Cyrillic symbos in orders and invoice 8 Months, 2 Weeks ago Karma: 8
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 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...
humphrey
Expert Boarder
Posts: 138
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21111
Re:Problem with Cyrillic symbos in orders and invoice 8 Months, 2 Weeks ago Karma: 0
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!
urandom
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21127
Re:Problem with Cyrillic symbos in orders and invoice 8 Months, 1 Week ago Karma: 0
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!
urandom
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21282
Re:Problem with Cyrillic symbos in orders and invoice 7 Months, 1 Week ago Karma: 140
Can you paste an example of cyrillic symbols you used into mask to let us test what's rong ?
eldy
Administrateur
Posts: 1319
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison Birthday: 10/10
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.
 
#21296
Re:Problem with Cyrillic symbos in orders and invoice 7 Months, 1 Week ago Karma: 5
lrq3000
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21297
Re:Problem with Cyrillic symbos in orders and invoice 7 Months, 1 Week ago Karma: 8
Hi Irq3000, thank you ! and by the way thanks again for your amazing job with customfields modules.
humphrey
Expert Boarder
Posts: 138
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1