SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Meta tags

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Meta tags

    Which of these mete tags should i be using. What is the diference between them

    HTML Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    Thanks in advance

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Ummm how does this deal with PHP?

    Anyways use the one the reflects the character encoding you are using.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup, that answers the question

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Moved to the X/HTML board.

    Furthermore, this article should answer all your questions on the subject.

    http://www.sitepoint.com/article/gui...acter-encoding

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by QuizToon View Post
    Which of these mete tags should i be using.
    That depends on what character encoding you have saved your source files with. It might be neither of them.

    Quote Originally Posted by QuizToon View Post
    What is the diference between them
    Both declare that the content is HTML (although they're using XML syntax, which is invalid HTML in this instance).

    The first one declares the character encoding to be ISO 8859-1.
    The second one declares the encoding to be UTF-8.

    Note that an HTTP equivalent in a meta element will be ignored if the web server sends the corresponding real HTTP header.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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