pdftk + xfdf + php can't handle umlauts

大兔子大兔子 提交于 2019-12-06 11:35:22

I think you will have more luck if you use the following list:

  • Ä for Ä (instead of Ä)
  • Å for Å (instead of Å)
  • Ö for Ö (instead of Ö)
  • Ü for Ü (instead of Ü)
  • ß for ß (instead of ß)
  • ä for ä (instead of ä)
  • å for å (instead of å)
  • ö for ö (instead of ö)
  • ü for ü (instead of ü)

I'll let you yourself find out how to extend that list until it reaches completeness :-)

It's because you use htmlentities in your PHP script. That converts the accented symbols to &xxxx;

Set your XML encoding to iso-8859-1 or WINDOWS-1252 and leave out the htmlentities in your PHP script

Another thing to try is to use utf8_encode instead of htmlentities (and not modify the XML-encoding)

To support any UFT-8 characters, I wrote PdfFormFillerUTF-8: http://sourceforge.net/projects/pdfformfiller2/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!