views:

406

answers:

1

I have an xml file that is being used on a third party system, and I have no control over the third party system that is using the xml file.

The third party system fails because there are ascii in the xml file.

For example, it fails when it sees

,

when it wants a single quote ’

Is there a way to throw php code around the variables and decode the ascii into plain text?

+2  A: 

You can run your strings through html_entity_decode().

soulmerge