Brad
Brad

Reputation: 12262

Need to decode ascii for xml file, into literal characters

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?

Upvotes: 0

Views: 2426

Answers (1)

soulmerge
soulmerge

Reputation: 75714

You can run your strings through html_entity_decode().

Upvotes: 2

Related Questions