SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2003
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Which "Content-Language" and "charset" settings ?

    Hello,
    which settings should I set on these code, for an English / American site ?

    <meta http-equiv="Content-Language" content="?r">

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

    Thanks in advance,
    Koros

  2. #2
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use:

    lang and xml:lang set to "en" and charset to "utf-8"

    Other charsets will work.
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2003
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem is that my site may contains some foreign character and sign like " ' " directly past in the html code instead of being converted to code... and in those case it causes some problems.

    Isn't there a charset that will allow the widest characters possible ?
    Would charset=windows-1252 be a good choice ?

    Cordially,
    Koros

  4. #4
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Koros
    Problem is that my site may contains some foreign character and sign like " ' " directly past in the html code instead of being converted to code... and in those case it causes some problems.
    Then you should use the character entity - a pretty full list is available at http://www.alanwood.net/demos/ent4_frame.html

    For the character you mention, the prime, (it is not a quotation mark - a frequent cause for confusion) the entity code is
    Code:
    &#8242 ;  or &prime;
    but leave out the space before the first semi-colon - this forum software converts it to the character when it is a numeric entry, but not when it is expressed in words.
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  5. #5
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by John Colby
    I use:
    lang and xml:lang set to "en"
    or even "en-us" if it's specifically american...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


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
  •