/    Sign up×
Community /Pin to ProfileBookmark

ISO-88559-1 or UTF-8?

I’m getting ready to completely re-work my existing site and I’m wondering which of the two MIME types, listed in the subject line above, would be better to code my pages under…

<meta http-equiv=”Content-Type” content=”application/xhtml+xml; charset=iso-8859-1″ />
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />

  • or –
  • <meta http-equiv=”Content-Type” content=”application/xhtml+xml; charset=utf-8″ />
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

    Thanx.

    to post a comment
    HTML

    8 Comments(s)

    Copy linkTweet thisAlerts:
    @CharlesJan 24.2005 — Since you appear to be using XHTML and not HTML you might as well go ahead and use utf-8.
    Copy linkTweet thisAlerts:
    @BeachSideJan 26.2005 — [i]Originally posted by Charles [/i]

    [B]Since you appear to be using XHTML and not HTML you might as well go ahead and use utf-8. [/B][/QUOTE]


    Why do you say that? I have never really looked into this issue before.
    Copy linkTweet thisAlerts:
    @PeOfEoJan 26.2005 — I am also wondering why one would pick utf-8 over another charset.

    also: stmasi: your sig means "prepare to meet your horrible doom!!!"?
    Copy linkTweet thisAlerts:
    @MstrBobJan 26.2005 — [font=trebuchet ms][color=deeppink]

    Unless you declare the characterset in the XML declaration, it defaults to UTF-8 or UTF-16, no? So you have to.

    [/color]
    [/font]
    Copy linkTweet thisAlerts:
    @Robert_WellockJan 26.2005 — I hope you know:

    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

    Doesn't actually do anything, it doesn't create a XHTML document served as 'application/xhtml+xml' you must declare in the prologue or headers.


    The document character set for XML and HTML 4.0 is Unicode (aka ISO 10646). This means that HTML browsers and XML processors should behave as if they used Unicode internally. But it doesn't mean that documents have to be transmitted in Unicode. As long as client and server agree on the encoding, they can use any encoding that can be converted to Unicode.

    UTF-8 is generally more interoperable:

    http://www.w3.org/TR/unicode-xml/

    http://www.unicode.org/unicode/faq/utf_bom.html#UTF8
    Copy linkTweet thisAlerts:
    @PeOfEoJan 26.2005 — [i]Originally posted by Robert Wellock [/i]

    [B]

    UTF-8 is generally more interoperable:



    http://www.w3.org/TR/unicode-xml/

    http://www.unicode.org/unicode/faq/utf_bom.html#UTF8 [/B]
    [/QUOTE]
    [COLOR=deeppink]I just was not sure why it was any better then usascii of utf-16 or something. TY for the links, I will read that in a bit.[/COLOR]
    Copy linkTweet thisAlerts:
    @stmasiauthorJan 26.2005 — Sorry...

    Suppose I should've posted my reason for inquiring.

    ?

    I'm going to be re-working the web site into nine-or-so different languages and it was my understanding that unless I code under utf-8, the page couldn't be "translated" into the appropriate foreign language.

    Am I wrong? Is there something else I need to do to ensure that, say, someone in Japan is able to pull up the site and automatically see the Japanese version?

    Thanx.
    Copy linkTweet thisAlerts:
    @PeOfEoJan 26.2005 — [i]Originally posted by stmasi [/i]

    [B]Sorry...



    Suppose I should've posted my reason for inquiring.



    ?



    I'm going to be re-working the web site into nine-or-so different languages and it was my understanding that unless I code under utf-8, the page couldn't be "translated" into the appropriate foreign language.



    Am I wrong? Is there something else I need to do to ensure that, say, someone in Japan is able to pull up the site and automatically see the Japanese version?



    Thanx. [/B]
    [/QUOTE]
    [COLOR=deeppink]How is the page getting translated? I mean it seems to me that you are going to need a trnalater service (maybe something like babel fish) unless the browsers over there in japan have translation features built in.[/COLOR]
    ×

    Success!

    Help @stmasi spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...