Results 1 to 2 of 2

Thread: How to add encoding tag

  1. #1
    Join Date
    Sep 2006
    Posts
    9

    How to add encoding tag

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •