Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,674
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Which charset to use ?

    I have noticed that I have been using this
    in my metatags:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    However looking at other peopls websites, I usually this:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    This site uses:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

    What are the reasons for choosing one or the other ?

    Is one of them somehow "better" ?

    Thanks for any insights on this

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by jeddi View Post
    What are the reasons for choosing one or the other ?
    utf-8 allow to use non-english chars and symbols, iso-8859-1 is extended ascii. This is the main difference.

    best regards

  • #3
    Senior Coder
    Join Date
    May 2006
    Posts
    1,674
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Does it matter if one page on my website uses
    charset=UTF-8

    and another uses charset=iso-8859-1 ?

    Any other reasons for chosing one over the other ?

    What does iso-8859-1 have
    that UTF-8 doesn't ?

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by jeddi View Post
    Does it matter if one page on my website uses
    charset=UTF-8

    and another uses charset=iso-8859-1 ?
    no it's not a problem,

    Any other reasons for chosing one over the other ?

    What does iso-8859-1 have
    that UTF-8 doesn't ?
    any char in iso-8859-1 is a 1 byte char in utf-8. I guess is better to read this:

    http://www.cl.cam.ac.uk/~mgk25/unicode.html

    best regards


  •  

    Posting Permissions

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