Special characters in report output

Re: Special characters in report output

Postby admin » Tue Dec 23, 2014 6:47 am

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 5771 times


Add them in System Setup..

setup.PNG
setup.PNG (31.41 KiB) Viewed 5771 times


Then you will find them available here ..

lists.PNG
lists.PNG (34.25 KiB) Viewed 5771 times




Steven
admin
Site Admin
 
Posts: 3079
Joined: Mon Jun 15, 2009 9:53 am

Re: Special characters in report output

Postby nekpap » Thu Dec 25, 2014 6:00 am

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
nekpap
 
Posts: 27
Joined: Wed Dec 03, 2014 4:11 pm

Re: Special characters in report output

Postby Arunas » Sun Feb 08, 2015 8:11 am

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: 16
Joined: Sun Feb 08, 2015 7:49 am

Re: Special characters in report output

Postby Arunas » Tue Feb 17, 2015 10:50 pm

Hi,

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

Arunas
Arunas
 
Posts: 16
Joined: Sun Feb 08, 2015 7:49 am

Re: Special characters in report output

Postby Katris01 » Wed Mar 04, 2015 1:57 pm

still searching for more idea on how to fix this
Katris01
 
Posts: 1
Joined: Wed Mar 04, 2015 1:54 pm

Re: Special characters in report output

Postby glart » Wed Mar 02, 2016 12:58 am

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
zx3.jpg
Sample
zx3.jpg (41.37 KiB) Viewed 5509 times
glart
 
Posts: 2
Joined: Wed Mar 02, 2016 12:51 am

Re: Special characters in report output

Postby glart » Thu Mar 03, 2016 2:38 am

Please any Help ??????
:roll:
glart
 
Posts: 2
Joined: Wed Mar 02, 2016 12:51 am

Ишешь что-нибудь почитать?! Я покажу где ...

Postby Boydayoxids » Sun Mar 06, 2016 5:03 am

Ишешь что-нибудь почитать?! Что-то интересное?
Тогда заходи на сайт http://vip-obzor.ru и выбирай что душе угодно.
Мы публикуем по несколько статей в день, так что ты не заскучаешь.
Продвигаем сайт http://www.mywork-home.com
Boydayoxids
 
Posts: 1
Joined: Fri Sep 02, 2011 9:43 am
Location: Россия

Re: Special characters in report output

Postby amarisJones » Wed Mar 09, 2016 7:19 pm

Nice work,I'm very interested in this topic. I would have been concerned.
Fashion bubble football : Bumper ball
amarisJones
 
Posts: 2
Joined: Wed Mar 09, 2016 12:30 pm

Previous

Return to Report Writer



cron