Reading XML Feed - Encoding Issues
Posted: Wed May 15, 2013 4:44 pm
Hi All,
I'm new to LiveCode and rattling my brains as to why this fault is occurring.
The app I'm building pulls in an XML feed. If the feed has on the first line <?xml version="1.0" encoding="iso8859-1" ?> then it comes up with an error message:
"Failed to process preferences file with error: xmlerr, can't parse XML. Unsupported encoding iso8859-1"
If I copy the file to my local server and remove the first line <?xml version="1.0" encoding="iso8859-1" ?> then the app behaves as expected and correctly displays the XML fields.
I've googled for help and looked on forums that led me to believe I need to encode into UTF16. But after trying various solutions it isn't working for me, leading me to ask the experts.
Can someone please tell me where I'm going wrong.
Many thanks.
Neil
I'm new to LiveCode and rattling my brains as to why this fault is occurring.
The app I'm building pulls in an XML feed. If the feed has on the first line <?xml version="1.0" encoding="iso8859-1" ?> then it comes up with an error message:
"Failed to process preferences file with error: xmlerr, can't parse XML. Unsupported encoding iso8859-1"
If I copy the file to my local server and remove the first line <?xml version="1.0" encoding="iso8859-1" ?> then the app behaves as expected and correctly displays the XML fields.
I've googled for help and looked on forums that led me to believe I need to encode into UTF16. But after trying various solutions it isn't working for me, leading me to ask the experts.
Can someone please tell me where I'm going wrong.
Many thanks.
Neil