You are here:  » Charater Set ISO-8859-1


Charater Set ISO-8859-1

Submitted by crounauer on Tue, 2006-10-03 14:10 in

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

Submitted by support on Tue, 2006-10-03 14:13

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.

Submitted by crounauer on Tue, 2006-10-03 14:17

Thanks,

Are all xml feeds UTF-8, or does it depend on the vendor?

Simon

Submitted by support on Tue, 2006-10-03 14:39

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.