SimpleXML and Chinese

后端 未结 3 1964
余生分开走
余生分开走 2021-01-16 15:16

I\'m busy trying to process the following RSS feed: Yahoo Search RSS, using the following code once the data is fetched:

$response = simplexml_load_string($dat

3条回答
  •  情书的邮戳
    2021-01-16 16:19

    There are a lot of reasons for encoding issues with PHP. I'd check:

    • mb_internal_encoding
    • iconv_set_encoding
    • And make sure the encoding in the XML document is UTF-8

提交回复
热议问题