PDA

View Full Version : How to add encoding tag



btr94
16 Sep 2006, 05:35 PM
How do I add an encoding tag, such as "utf-8"? Also, how do I figure out which encoding my website is in??

Thanks,
Bryce

Wickham
17 Sep 2006, 01:31 AM
See http://www.w3.org/International/O-charset.en.php
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > for HTML

<meta http-equiv="content-type" content="text/html;charset=utf-8" /> for XHTML (I've changed capitals to lower case as well as the closing tag / ).

Validators (and I think browsers) use utf-8 as a default if none other is specified.
To see what you have at present look for the meta tag in the head section to see what charset is there now.