madzsari Posted February 16, 2006 Report Share Posted February 16, 2006 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? Quote Link to comment Share on other sites More sharing options...
madzsari Posted February 16, 2006 Author Report Share Posted February 16, 2006 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. Quote Link to comment Share on other sites More sharing options...
Falc Posted February 17, 2006 Report Share Posted February 17, 2006 utf8 unicode should display any character from any language correctly. For more information on unicode, visit this page. Quote Known Languages:adv-XHTML, int-PHP, int-SQL, int-CSS, beg-PythonCurrently reading: Take off in Japanese, How to play popular piano in 10 easy lessons, The Magicians' GuildCurrently learning: Python, Piano, JapaneseCurrent project: RelaxingCurrently playing: Link to comment Share on other sites More sharing options...
olajideolaolorun Posted February 17, 2006 Report Share Posted February 17, 2006 Also take a look here:http://wiki.uniformserver.com/Charset_Changing Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.