Jump to content
The Uniform Server Community
Sign in to follow this  
madzsari

charset (problems with FPDF)

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?

Share this post


Link to post
Share on other sites

sorry, it seems that the forum translates correctly the codes for the characters in question. so the codes that appear instead of my ő and ű characters are the charcode: & # 369 ; and & # 337 ;. I hope now it will be displayed correctly.

Share this post


Link to post
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

Share this post


Link to post
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...
Sign in to follow this  

×
×
  • Create New...