Odd Characters Showing Up

Discussion in 'HTML & Website Design' started by Canadianbacon, Jul 31, 2008.

  1. #1
    what causes this? these odd characters are replacing comas and quotations on one of my sites.

    [​IMG]
     
    Canadianbacon, Jul 31, 2008 IP
  2. ICmyhotel

    ICmyhotel Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hmm. This is a problem I remember when you try to publish MS Word documents using HTML.

    I would check what charset your browser THINKS this page is in. IN MSIE, click "View" and go down to "Encoding". Make a note of what it says.

    Check what charset you are using when you produce the page. This is usually set somewhere in your HTML editor.

    Make sure the users browser is set to the correct charset using <meta name="Content-Type" content="text/html; charset=YOURCHARSETCODEHERE">.

    If you have a good quality HTML editor, there should be an option to validate your pages. This picks out non iso-8859-1 chars for you, which you then should alter, if you are using iso-8859-1.
     
    ICmyhotel, Jul 31, 2008 IP
  3. Canadianbacon

    Canadianbacon Well-Known Member

    Messages:
    1,231
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    173
    Articles:
    1
    #3
    hmmm that's sounds hard
     
    Canadianbacon, Jul 31, 2008 IP
  4. Canadianbacon

    Canadianbacon Well-Known Member

    Messages:
    1,231
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    173
    Articles:
    1
    #4
    ok i change it to western and now it works. Will everyone see it all messed up, or was it just my browser?

    thanks
     
    Canadianbacon, Jul 31, 2008 IP
  5. ICmyhotel

    ICmyhotel Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Everyone will see it like this. If you are using iso-8859-1 then:

    Between your <head> and </head> tags place this code

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

    Look at it ion your browser and refresh the page.

    It should be fixed.
     
    ICmyhotel, Jul 31, 2008 IP
    Canadianbacon likes this.