🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #3933

When exporting UTF-8 encoded HTML page to PDF, Foreign characters won't display correctly.

#3933
From: Jack.Liu
Date: Fri, 31 Oct 2008 14:55
17 lines
1508 bytes
I'm not sure if this is a PDF issue or a PHP issue, I have tried asking this in several forums with no working result, and I hope this is the right place to post this question... if not please let me know of another forum.

here's my PHP code.

...

$test_label = 'の契約';
 $result = html_entity_decode($test_label, ENT_QUOTES, 'UTF-8')
 PDF_show_xy($pdf, $result.": ".$order_date , SECTION_START_X+TEXT_LEFT_PADDING, 750+((SECTION_TITLE_BOX_HEIGHT-5)/2));

...

the UTF-8 encryption is correct, because the web browser displays all the characters correctly.

Problem:
Problem occurs when I try to export the HTML into PDF.
All I'm getting in my pdf export is a bunch of gibberish. Is there a PDF add-on/plug-in that I'm suppose to install? or is my encoding function called incorrectly wrong.
Technical Details
Message-ID: <59b6e6cd.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news2.arglkargh.de!news.albasani.net!fu-berlin.de!news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,d5c8a531e0c323b1,start
X-Google-Attributes: gid10273d,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jack.Liu@adobeforums.com
Newsgroups: adobe.reader
Subject: When exporting UTF-8 encoded HTML page to
 PDF, Foreign characters won't display correctly.
Message-ID: <59b6e6cd.-1@webcrossing.la2eafNXanI>
Date: Fri, 31 Oct 2008 07:55:59 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news2.arglkargh.de!news.albasani.net!fu-berlin.de!news4us.nl!webcrossing