2 Replies Latest reply on Oct 31, 2008 8:36 AM by (Jack.Liu)

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

      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.