what should be the encoding?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

what should be the encoding?

Post 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?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

thank you so much.
Post Reply