Page 2 of 2

Re: Special characters in report output

Posted: Mon Dec 22, 2014 10:17 pm
by admin
nekpap,

You may have to create your own fonts here http://www.fpdf.org/makefont/

Then place them in the font directory..
fonts.PNG
fonts.PNG (46.93 KiB) Viewed 13043 times
Add them in System Setup..
setup.PNG
setup.PNG (31.41 KiB) Viewed 13043 times
Then you will find them available here ..
lists.PNG
lists.PNG (34.25 KiB) Viewed 13043 times


Steven

Re: Special characters in report output

Posted: Wed Dec 24, 2014 9:30 pm
by nekpap
Thank you Steven!

I have done everything you suggested.
BtW the file names must be in lower cases :
(in nurunpdf.php line 41 : $PDF->AddFont($fonts[$i], '' , strtolower($fonts[$i]) . '.php');)

But it is still not working!!! :(

I think the problem is at line 740 in nurunpdf.php :
$value = mb_convert_encoding($v['V'], "WINDOWS-1252", "UTF-8");

So, i change it to :
$value=$v['V'];

and at line 925 :
$PDF->MultiCell($width, $height, implode("\n", $contents->lines), $borderWidth == 0 ? 0 : 1, $textAlign, true);

I change it to :
$text = implode("\n", $contents->lines);
$text = mb_convert_encoding($text, "ISO-8859-7", "UTF-8");
$PDF->MultiCell($width, $height, $text, $borderWidth == 0 ? 0 : 1, $textAlign, true);

Now it seams to work (for Greeks) for both labels and fields!

In my opinion, I think you should give the ability to the user to declare with the fonts and the encoding or you should replace FPDF with an extension which supports UTF-8, like tFPDF.

Thanks
Nektarios

Re: Special characters in report output

Posted: Sat Feb 07, 2015 11:41 pm
by Arunas
Hi,

I have this problem with lithuanian characters too. All tables uses utf8_general_ci. I created own fonts, changed nurunpdf.php, but result is the same. May be is other solution?

Arunas

Re: Special characters in report output

Posted: Tue Feb 17, 2015 2:20 pm
by Arunas
Hi,

Working. Changing nurunpdf.php code I am using Baltic Windows-1257 encoding, but need to use Baltic ISO-8859-13.

Arunas

Re: Special characters in report output

Posted: Wed Mar 04, 2015 5:27 am
by Katris01
still searching for more idea on how to fix this

Re: Special characters in report output

Posted: Tue Mar 01, 2016 4:28 pm
by glart
Hi all the friends...
Great app...!!!

Have find any solution....????
because the problem remains with Greek characters not displaying properly in the PDF he gives me questions symbol in fonts charachter *(????????)

I apply all the above to implement all these proposals to fix it

Im wiaiting for a solution...
Plz Help !!!!

Thanks

George from Greece

P.S.
Do not solve any problem if we put the tfpdf with unicode

Re: Special characters in report output

Posted: Wed Mar 02, 2016 6:08 pm
by glart
Please any Help ??????
:roll: