Open liorfein opened 7 years ago
Sidenote: use formatting -- wrapping the XML with the "code" indicators (`) will show what you meant; I updated your post accordingly.
How does the original submission look? Meaning, is it encoded coming back from the form? Or only after it's mapped to XML? How are you mapping -- nested fields or mask? It'd probably help to include the entire debug email (scrubbed of sensitive data).
Hi
According to the debug mail it seems that the the original value was received and the encoding happened after the mapping. (see attached file) I am mapping nested fields like CUST_DETAILS/P_N (I tested also without nesting the field but same problem occurs) No mask
Thank you
Hi I think my problem is a result that the created XML does not have encoding="UTF-8" in the Header. A suggested code change is to add in function simple_xmlify ' $root = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" ?>' . $el);' instead of ' $root = new SimpleXMLElement($el);'
(added xml version=1.0 encoding=UTF-8 to argument)
I entered hebrew characters text in the form. But the created XML contains encoded string instead of the original input
<ROOT><PERMISSION><USERNAME>API</USERNAME><PASSWORD>1234</PASSWORD></PERMISSION><CUST_DETAILS><P_N>בדיקה</P_N><CELL>0521234567</CELL><MAIL>test1@test.com</MAIL><CAMPAIGN>טופס באתר</CAMPAIGN></CUST_DETAILS><CARD_TYPE>private_customer</CARD_TYPE></ROOT>
(in the preview of this issue, the XML is displayed correctly after decoding):