Hi David,
A quick question please...
When parsing and downloading and xml file that has specific character encoding, is it necessary to "tell" the database that the file has a specific character encoding, or is simply including the character set in a "header file" sufficient?
charset=iso-8859-1
I am getting wierd symbols when downloading foreign country names!
Thanks,
Simon
Thanks,
Are all xml feeds UTF-8, or does it depend on the vendor?
Simon
Hi,
utf-8 is far more common, but you do see iso-8859-1 occasionally. There are a couple of non-UK/US affiliate networks who's datafeeds are all iso-8859-1 encoded.
Cheers!
David.
Hi Simon,
It's more likely to do with the fact that the HTML that you are generating is not in the same character set as the data. Try adding this line of PHP to very top of your script; before any output is generated:
header("Content-Type: text/html;charset=iso-8859-1");
See if that helps...
Cheers,
David.