Exporting HTML to PDF in a different language.
Posted: Thu Oct 30, 2008 4:20 pm
I have a page whose label is db generated. I would like to export that page in which ever language the user wishes. Currently I have 2 languages, English and Japanese.
Its currently encoded in UTF-8 and everything displays correctly in the web browser, but displays the actual utf-8 characters when I tried to export in Japanese...
For example, you'll see things like "の契約" (minus spaces) instead of the actual Japanese characters ... の契約
Can someone please point me toward the right directions as to which PHP encoding/decoding functions I have to use to get this to work?
I tried testing the Japanese version of Yahoo.com on several html2php websites ( ie "http://www.htm2pdf.co.uk/" ) and none of them seems to be working as well.
I have also tried converting from utf-8 to several other encoding (utf-16, EUC-JP, ... ) using iconv() and outputting it via PDF_show_xy() but that did not work as well.
Its currently encoded in UTF-8 and everything displays correctly in the web browser, but displays the actual utf-8 characters when I tried to export in Japanese...
For example, you'll see things like "の契約" (minus spaces) instead of the actual Japanese characters ... の契約
Can someone please point me toward the right directions as to which PHP encoding/decoding functions I have to use to get this to work?
I tried testing the Japanese version of Yahoo.com on several html2php websites ( ie "http://www.htm2pdf.co.uk/" ) and none of them seems to be working as well.
I have also tried converting from utf-8 to several other encoding (utf-16, EUC-JP, ... ) using iconv() and outputting it via PDF_show_xy() but that did not work as well.