Save Special characters in XML
I have a form where users enter a paragraph, which I then save in an XML file, using PHP.
However, as soon as someone copies a special character (i.e. “ - character, not the normal double quote, but ‘ numerical entity.) Then the value is not saved to the XML file at all, but leaves an empty element.
That is when I do not specify any Character encoding in my XML document.
Whats more, this problem only occurs on the remote server, and not my localhost.
Does anybody know how I can fix it?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)