Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-09-2009, 11:22 AM   PM User | #1
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,517
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
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
jeddi is offline   Reply With Quote
Old 04-09-2009, 11:27 AM   PM User | #2
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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
oesxyl is offline   Reply With Quote
Old 04-09-2009, 01:50 PM   PM User | #3
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,517
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
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 ?
jeddi is offline   Reply With Quote
Old 04-09-2009, 02:35 PM   PM User | #4
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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,

Quote:
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
oesxyl is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:50 PM.


Advertisement
Log in to turn off these ads.