What is happening when SimpleXML parses XML with special characters?

后端 未结 1 614
自闭症患者
自闭症患者 2021-01-22 12:40

I am trying to solve this problem I am having with my final output.

The XML feed looks like this...


<         


        
1条回答
  •  悲&欢浪女
    2021-01-22 12:51

    $title will be an UTF-8 encoded string in the output. Signal the browser that your website is in UTF-8 and everything is fine:

    header("Content-type:text/html; charset=utf-8");
    

    See as well: Setting the HTTP charset parameter

    Only Questionmarks what that means? Probably the quick answer is helpful.

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