dompdf character encoding UTF-8

后端 未结 11 2022
我在风中等你
我在风中等你 2020-12-01 21:07

Im trying to create pdf with correct characters, but there are \"?\" chars. I created a test php file, where Im trying to fing the best solution. If Im open in the browser t

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 21:29

    utf8_decode() did the trick for me with some German translations like ä and ü.

    echo utf8_decode('X Ponuka číslo € černý Češký 
    ');

提交回复
热议问题