Jump to content
The Uniform Server Community

charset (problems with FPDF)


madzsari
 Share

Recommended Posts

sorry, I know there are already 2 related topics, I checked them, but I still need some more help (I a newby...)

 

so, I would like to use latin2 charset (hungarian). there are no problems when I am displaying data got from MySQL, but some characters do not appear correctly in FPDF. In FPDF I am using an ISO-8859-2 (latin2) charset, I made the the font myself (built from Courier, and mapped it as in the fpdf documentation). However, characters appear correctly on the webpage, but only codes appear in the generated PDF (instead of the őű characters I got ő and ű).

 

I dont know where the error is, because only data coming from MySQL appears incorrectly in the pdf file, same characters entered directly from the PHP code appear correctly. And this is what really is confusing me.

 

Any idea? Was the problem description clear?

Link to comment
Share on other sites

utf8 unicode should display any character from any language correctly.

 

For more information on unicode, visit this page.

Known Languages:
adv-XHTML, int-PHP, int-SQL, int-CSS, beg-Python

Currently reading: Take off in Japanese, How to play popular piano in 10 easy lessons, The Magicians' Guild
Currently learning: Python, Piano, Japanese
Current project: Relaxing
Currently playing: FalcHedgehog.gif

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.

Loading...
 Share

×
×
  • Create New...