Link to home
Start Free TrialLog in
Avatar of chadsaun
chadsaun

asked on

Display Chinese from Unicode using FPDF

I need some help. In our DB we have some chinese characters that look like this 红 and when put on a web page it look just like a Chinese character.

We need this to happen in a PDF using FPDF. In the FPDF example for displaying Chinese characters he gives this example...

$pdf=new PDF_Chinese();
$pdf->AddBig5Font();
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('Big5','',20);
$pdf->Write(10,'²{®É®ð·Å 18 C Àã«× 83 %');
$pdf->Output();

What I need to know, is how I can convert this (红) to this format (®É®ð·Å 18 C Àã«× 83 %). If I can get it in that format then I think I can get it to display Chinese in our PDF.
ASKER CERTIFIED SOLUTION
Avatar of nicholassolutions
nicholassolutions
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chadsaun
chadsaun

ASKER

That did work Matt. Thanks. Now we just need to get our translator and figure out if it echo'd the right character :P
Hi!  Does anyone still have the file "http://codes.myfreewares.com/php/Unicode/utf8Encode.php-file.html."  

I, too, am trying to get PDF to display chinese characters...

Thanks for your help.