PHP Utf8 Decoding Issue

前端 未结 4 1731
忘掉有多难
忘掉有多难 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:44

    Problem is in your PHP file encoding , save your file in UTF-8 encoding , then even no need to use utf8_decode , if you get these data 'Praha 5, Staré Město,' from database , better change it charset to UTF-8

提交回复
热议问题