[Resolved] Cleaning UTF-8 for SOAP submission
So, some characters that are valid UTF-8 are not valid in XML. Specifically, control characters like 0xb (which was what was tripping me up) but also other ones.
To fix this I used this snippet: http://www.consil.co.uk/files/2010/02/clean_utf8_xml_string.php_.txt
then wrapped each call to htmlspecialchars in the create function in clean_utf8_xml_string() like:
$merge_vars[$var_tag] = clean_utf8_xml_string(htmlspecialchars($entry[$field_id]);
- The topic ‘[Resolved] Cleaning UTF-8 for SOAP submission’ is closed to new replies.