I am trying to send data that a user enters into the system via XML. The problem is that some special characters are causing an error, in particular the '–' character which is different to the normal minus sign (the only way I know how to get it is using outlook, entering a minus sign then return and it makes the sign larger).
How can I detect these either on entry or when returning from the database?
In Firefox it displays � which I don't mind but Internet Explorer returns an error so the page doesn't load.
as far as I understand, that header(XML declaration part) doesn't matter. Only the encoding which you use while the saving the file matters.
e.g. when u save an XML file to your disk, you need to choose the encoding type (which I see as an equivalent to setting a HTTP header when the XML is returned from a server to client)
I'm not sure how to set the encoding header in a php script while sending out the XML.. I'll post here if I find any useful information for setting the encoding header.
This thread not only resolved your issue(atleast as of now), but also unturned some of my wrong concepts..on which I need to do some reading
thanks to your question
Bookmarks