nekpap,
You may have to create your own fonts here http://www.fpdf.org/makefont/
Then place them in the font directory..
Add them in System Setup..
Then you will find them available here ..
Steven
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Special characters in report output
Re: Special characters in report output
You do not have the required permissions to view the files attached to this post.
-
- Posts: 27
- Joined: Wed Dec 03, 2014 7:41 am
Re: Special characters in report output
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
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
-
- Posts: 21
- Joined: Sat Feb 07, 2015 11:19 pm
Re: Special characters in report output
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
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
-
- Posts: 21
- Joined: Sat Feb 07, 2015 11:19 pm
Re: Special characters in report output
Hi,
Working. Changing nurunpdf.php code I am using Baltic Windows-1257 encoding, but need to use Baltic ISO-8859-13.
Arunas
Working. Changing nurunpdf.php code I am using Baltic Windows-1257 encoding, but need to use Baltic ISO-8859-13.
Arunas
-
- Posts: 1
- Joined: Wed Mar 04, 2015 5:24 am
-
- Posts: 2
- Joined: Tue Mar 01, 2016 4:21 pm
Re: Special characters in report output
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
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
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Tue Mar 01, 2016 4:21 pm