On 29 March 2010 16:47, solo hsi <xzyyyy@xxxxxxxxx> wrote: > sure, i know fpdf can deal with asian character like Chinese, but it > can't work with utf-8 charactor so that i have to replace it with > tcpdf. > > On Mon, Mar 29, 2010 at 8:14 PM, Richard Quadling > <rquadling@xxxxxxxxxxxxxx> wrote: >> On 27 March 2010 17:50, solo hsi <xzyyyy@xxxxxxxxx> wrote: >>> now i'm re-writing some script to output pdf files. the original code >>> is based on fpdf, but as you know, fpdf can't deal with the characters >>> in utf8. >> >> From http://www.fpdf.org/?lang=en >> >> "What languages can I use? >> >> The class can produce documents in many languages other than the >> Western European ones: Central European, Cyrillic, Greek, Baltic and >> Thai, provided you own TrueType or Type1 fonts with the desired >> character set. Chinese, Japanese and Korean are supported too." >> >> So, if you have the font for it, you should be able to encode the data >> easily enough. No matter what encoding you are using, unless the font >> you want to use has a glyph for it, you can't use it. This is more >> often the problem I've found. >> >> Regards, >> >> Richard. >> -- >> ----- >> Richard Quadling >> "Standing on the shoulders of some very clever giants!" >> EE : http://www.experts-exchange.com/M_248814.html >> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp >> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 >> ZOPA : http://uk.zopa.com/member/RQuadling >> > > > > -- > solo(xzyyyy@xxxxxxxxx) > Aha! I see what you mean. http://www.fpdf.org/en/tutorial/tuto7.htm Uses an encoding and only allows 256 characters. Hmm. With regard to your issue, it sounds like the class is extended further or uses magic functions to set/get missing properties. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php