PHP Utf8 Decoding Issue

前端 未结 4 1730
忘掉有多难
忘掉有多难 2020-12-18 02:58

I have the following address line: Praha 5, Staré Město,

I need to use utf8_decode() function on this string before I can write it to a PDF file (us

4条回答
  •  别那么骄傲
    2020-12-18 03:37

    you don't need that (@Rajeev :this string is automatically detected as utf-8 encoded :

    echo mb_detect_encoding('Praha 5, Staré Město,');
    

    will always return UTF-8.).

    You'd rather see : https://code.google.com/p/dompdf/wiki/CPDFUnicode

提交回复
热议问题