php correctly convert between encodings

后端 未结 1 979
萌比男神i
萌比男神i 2021-01-23 16:33

I\'ve just spent the last 3 hours tracking down a display problem on one of my pages. The text was a garbled mess. The problem turned out to be the use of utf8_encode

1条回答
  •  长情又很酷
    2021-01-23 17:24

    Either mb_convert_encoding or iconv, depending on what's installed on your server. (iconv is enabled by default, however, mbstring is not.)

    0 讨论(0)
提交回复
热议问题