PPG
PPG

Reputation: 33

Character Encoding Issue while generating XML File with UTF-8

When I try to generate XML File using PHP with below mention tag then it doesn't allowing to generate xml file.

<?xml version="1.0" encoding="UTF-8"?>

When i try to generate using encoding="ISO-8859-1" then only it allows but when i use encoding = "ISO-8859-1" then it prints some funny characters like â on behalf of single(') and double quotes(").

Please let me know how to solve this...

Upvotes: 0

Views: 99

Answers (1)

Kingson
Kingson

Reputation: 149

It's hard to figure it out with these provided information. Maybe you could use the Marshal XML Serializer to get around the issue.

Upvotes: 0

Related Questions