Anders
Anders

Reputation: 633

Support for norwegian characters in FPDF

I'm using fpdf to create some pdf's from a HTML-form.

Everything is working fine apart from the norwegian characters ÆØÅ doesn't work. They simply don't show. Because I am making this for norwegians, those characters are very important to make it useful.

How can I add support for ÆØÅ?

Upvotes: 0

Views: 623

Answers (1)

metalfight - user868766
metalfight - user868766

Reputation: 2750

Please try iconv:

Standard FPDF fonts use ISO-8859-1 or Windows-1252. You can try iconv to change character encoding.

Example:
     $str = iconv('UTF-8', 'windows-1252', $str);

And if you can change your PDF generation code then please look at mpdf : UTF-8 multilingual

Hope this help!

Upvotes: 1

Related Questions