How to Post an XML in HTTP?

How do we specify encoding attributes in php in parsing Arabic xml link "http://www.alriyadh.com/section.main.xml"?

  • I am having problems in parsing the following xml link "http://www.alriyadh.com/section.main.xml" "http://www.alriyadh.com/section.main.xml" it shows the unrecognized chareacters when i try to trverse the object returned from parsing like خادم الحرمين يهدي أبناØ

  • Answer:

    The xml file doesn't seem to have a Content-Type header. PHP really can't make sense of it without it, as iso-8859-1 is the default.

Richard van Velzen at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.