Open HamzaAlayed opened 1 year ago
:bug: Use UTF8 encoding to fix some special characters in xml response and fix this error DOMDocument::loadXML(): PCDATA invalid Char .....
UTF8
DOMDocument::loadXML(): PCDATA invalid Char ....
While this is possible, I don't think that's a good idea.
Why not encode it with UTF-8?
if (mb_detect_encoding($xml_string, 'UTF-8', true) === false) { $xml_string = utf8_encode($xml_string); }
:bug: Use
UTF8
encoding to fix some special characters in xml response and fix this errorDOMDocument::loadXML(): PCDATA invalid Char ....
.