View Full Version : character encoding?

Jan 31st, 2003, 12:53 AM
where does it go?
xml delcaration? meta? anywhere else? is it even needed?

Jan 31st, 2003, 02:01 AM
Are you refering to xml documents, or just the normal html docs?
HTML/XHTML is normally:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

For XML, Im not sure about it, but you might declare it in the ?xml tag itself, but again, im not to sure about that.

Yes, it is in the ?xml tag. Go here for more info:

Jan 31st, 2003, 07:26 AM
sorry, i was talking about an html document,
i was wanting to stray from the xml declaration because of this (http://codingforums.com/showthread.php?s=&threadid=12908). but if its the only option ....
i was using it in the meta like so:content="text/html; charset=iso-8859-1", i didnt know if this was the best place for it, IF its even needed. thanks.

Jan 31st, 2003, 11:26 AM
yes it is needed, and yes that is where it goes.

Jan 31st, 2003, 03:21 PM
ok cool, thanks 2 the both of you :)