Single quotes (and possibly double quotes) fails new contact submission

Regular Participant

Single quotes (and possibly double quotes) fails new contact submission

I've taken the example PHP code here, and successfully posted the XML to Constant Contact and seen in my account that the person was added, complete with all of my custom fields, so in that respect everything is ok, but if a value of one of the XML elements contains a single quote, the submission fails. I'd appreciate any help with this. I've tried using htmlentities() to encode the quotes, but it still isn't working.
1 REPLY 1
Regular Participant

It would really help, if you can post the xml that you are trying. or email the XML to our webservices support team, so it will be easy to understand the issue.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page