Title: Valid UTF-8 != Valid XML
Last modified: August 20, 2016

---

# Valid UTF-8 != Valid XML

 *  Resolved [gmcinnes](https://wordpress.org/support/users/gmcinnes/)
 * (@gmcinnes)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/valid-utf-8-valid-xml/)
 * Thanks for all your work on the update Zack. Once again, I want to point out 
   that Valid UTF-8 != Valid XML, so your mb_encode solution will not work.
 * Forms that have valid UTF-8 control characters in them will be rejected by the
   SOAP interface because they are not Valid XML.
 * How do you get UTF-8 control characters in a form, you ask? Just cut and paste
   from Word. If you have a longish form where someone has composed the answer offline
   in Word, and they cut and paste their answer into the form, the form submission
   stands a chance of being rejected
 * [http://wordpress.org/extend/plugins/gravity-forms-salesforce/](http://wordpress.org/extend/plugins/gravity-forms-salesforce/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/valid-utf-8-valid-xml/#post-3271921)
 * I did some testing and I believe I’ve been able to resolve this issue with some
   different code. Please let me know if 2.2.3 works for you for this; it works 
   for me.

Viewing 1 replies (of 1 total)

The topic ‘Valid UTF-8 != Valid XML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-salesforce_fbfdff.svg)
 * [Gravity Forms Salesforce Add-on](https://wordpress.org/plugins/gravity-forms-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-salesforce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/valid-utf-8-valid-xml/#post-3271921)
 * Status: resolved