Jump to content

charset with pdf ?


saviola

Recommended Posts

Actually that is quite easy.... From what I can remember, I don't think FPDF supports the UTF-8 charset, and won't print if the font used does not have all the characters needed.

 

This all means that you will need to use a supported encoding and embed the font it in the PDF.

 

FPDF supports:

 

* cp1250 (Central Europe)

* cp1251 (Cyrillic)

* cp1252 (Western Europe)

* cp1253 (Greek)

* cp1254 (Turkish)

* cp1255 (Hebrew)

* cp1257 (Baltic)

* cp1258 (Vietnamese)

* cp874 (Thai)

* ISO-8859-1 (Western Europe)

* ISO-8859-2 (Central Europe)

* ISO-8859-4 (Baltic)

* ISO-8859-5 (Cyrillic)

* ISO-8859-7 (Greek)

* ISO-8859-9 (Turkish)

* ISO-8859-11 (Thai)

* ISO-8859-15 (Western Europe)

* ISO-8859-16 (Central Europe)

* KOI8-R (Russian)

* KOI8-U (Ukrainian)

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...
  • 3 weeks later...
  • 6 months later...
Actually that is quite easy.... From what I can remember, I don't think FPDF supports the UTF-8 charset, and won't print if the font used does not have all the characters needed.

 

This all means that you will need to use a supported encoding and embed the font it in the PDF.

 

FPDF supports:

 

* cp1250 (Central Europe)

* cp1251 (Cyrillic)

* cp1252 (Western Europe)

* cp1253 (Greek)

* cp1254 (Turkish)

* cp1255 (Hebrew)

* cp1257 (Baltic)

* cp1258 (Vietnamese)

* cp874 (Thai)

* ISO-8859-1 (Western Europe)

* ISO-8859-2 (Central Europe)

* ISO-8859-4 (Baltic)

* ISO-8859-5 (Cyrillic)

* ISO-8859-7 (Greek)

* ISO-8859-9 (Turkish)

* ISO-8859-11 (Thai)

* ISO-8859-15 (Western Europe)

* ISO-8859-16 (Central Europe)

* KOI8-R (Russian)

* KOI8-U (Ukrainian)

 

 

You say FPDF supports Turkish but my pfd invoices still has the problem about turkish characters?

 

Is there any solution?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated