doubledee Posted April 4, 2011 Share Posted April 4, 2011 I am building an XML string to send to another server. The manual I am going off of says, NOTE: * XML has a special set of characters that cannot be used in normal XML strings. These characters are: Special Character Equivalent & & < < > > " " ' ' It goes on to say... # To avoid problems with special characters, URLEncode special characters (example: ~ ! @ # % ^ &) before sending to the IS Gateway # If you are using POST method, UTF-8 encoding must be used. I am unsure of what to do based on the information above?! It looks like I might want to use urlencode?? Also, maybe I need either htmlentities (or possibly htmlspecialchars)?? Please enlighten me (and help protect my data)!! Thanks, Debbie Quote Link to comment Share on other sites More sharing options...
requinix Posted April 4, 2011 Share Posted April 4, 2011 Step 1: utf8_encode() but only if your data isn't already in UTF-8. Step 2: htmlspecialchars(). Step 2 may be optional, depending on how you're generating the XML. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.