Help - Search - Members - Calendar
Full Version: charset (problems with FPDF)
The Uniform Server BBoard > Support > Uniform Server - Windows > MySQL
madzsari
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?
madzsari
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.
Falc
utf8 unicode should display any character from any language correctly.

For more information on unicode, visit this page.
olajideolaolorun
Also take a look here:
http://wiki.uniformserver.com/Charset_Changing
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.