Page 1 of 1

what should be the encoding?

Posted: Fri Oct 14, 2005 1:38 am
by saumya
hi,
Actually i got confused with the encoding style?
When i create a new xml document in dreamweaver then the first line is

<?xml version="1.0" encoding="iso-8859-1"?>

Is that ok? Because a lot of xml documents i saw are actually defined like

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

which one is right and why?

Posted: Fri Oct 14, 2005 4:28 am
by onion2k
They're both right. The first one is for a "Western" character set (English, American, French, etc), the second is for an "International" character set that can cope with practically anything. I generally use UTF-8.

Posted: Fri Oct 14, 2005 4:45 am
by saumya
thank you so much.