XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
saumya
Forum Contributor
Posts: 193 Joined: Sun Jan 30, 2005 10:21 pm
Post
by saumya » Fri Oct 14, 2005 1:38 am
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?
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Fri Oct 14, 2005 4:28 am
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 » Fri Oct 14, 2005 4:45 am
thank you so much.