Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Special characters in report output

admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

Re: Special characters in report output

Unread post 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 12950 times
Add them in System Setup..
setup.PNG
setup.PNG (31.41 KiB) Viewed 12950 times
Then you will find them available here ..
lists.PNG
lists.PNG (34.25 KiB) Viewed 12950 times


Steven
nekpap
Posts: 27
Joined: Wed Dec 03, 2014 7:41 am

Re: Special characters in report output

Unread post 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
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Re: Special characters in report output

Unread post 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
Arunas
Posts: 21
Joined: Sat Feb 07, 2015 11:19 pm

Re: Special characters in report output

Unread post by Arunas »

Hi,

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

Arunas
Katris01
Posts: 1
Joined: Wed Mar 04, 2015 5:24 am

Re: Special characters in report output

Unread post by Katris01 »

still searching for more idea on how to fix this
glart
Posts: 2
Joined: Tue Mar 01, 2016 4:21 pm

Re: Special characters in report output

Unread post 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
Attachments
Sample
Sample
zx3.jpg (41.37 KiB) Viewed 12688 times
glart
Posts: 2
Joined: Tue Mar 01, 2016 4:21 pm

Re: Special characters in report output

Unread post by glart »

Please any Help ??????
:roll:
Post Reply