JFlame Posted February 22, 2011 Share Posted February 22, 2011 I'm having trouble with XML that is generated from user inputted data. In some cases, it seems that folks are importing (via an import mechanism) data that contains apostrophes, but not regular apostrophes. Example: "you're", "we've", "JFlame's", etc. The problem is the character they are importing does not match the " ' " character, so I'm having trouble escaping it. Honestly, it's never a problem that this character is being used, until it comes to XML. XML hates this thing! Even putting it in a !CDATA[ construct will make the XML bad. Let's see if I can paste an example here: ’ How do I deal with that little guy in XML? I have a few options, if I can figure out how to fix it at data import/upload then I can probably do that, but best is to mask it in the XML as it is being generated. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/228518-apostrophe-character-masking-cant-figure-out-what-this-is/ 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.