How do youdisplay these charectors properly

Discussion in 'HTML & Website Design' started by mumfry, Apr 2, 2013.

  1. #1
    Hello
    I am trying to fix the issue i am having with words that contain special letters in them
    Like a name(french name) for example, might have a letter like é with that extra thing above
    Placing a letter like that on my site i get this � instead of this é
    i tried adding
    AddDefaultCharset Off
    to my .htaccess file but that didn't help

    how can i make these types of letters display properly
    any help with this would be greatly appreciated

    Thanks
     
    mumfry, Apr 2, 2013 IP
  2. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #2
    you have to remove from your HTML code complete blockquote.
     
    creativewebmaster, Apr 3, 2013 IP
  3. rolodex

    rolodex Well-Known Member

    Messages:
    364
    Likes Received:
    37
    Best Answers:
    5
    Trophy Points:
    175
    #3
    I really can't understand what is has to do with blockquote.

    However, in order of characters to display properly, declare your charset in the META tag. for example
    <META
    http-equiv="Content-Type"
    content="text/html; charset=EUC-JP">
    
    HTML:
    That's a japanese character set. Now all you have to do is find out your charset.

    For further reading,
    http://webdesign.about.com/od/charactersets/a/aa112906.htm
    http://www.w3.org/TR/REC-html40/charset.html

    Hope this helps, and good luck.
    If I'm wrong in any way please correct me.
     
    rolodex, Apr 3, 2013 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Ignore creativewebmaster, nothing that user posts has made ANY sense in ANY thread.

    META tag does jack **** if the server is sending it in the HTTP headers.

    My advice is thus:

    1) Configure your editor for UTF-8. Yes, you have to set your EDITOR for it.

    2) declare the meta thus (this is for local testing, NOT deployment)
    <meta
      http-equiv="Content-Type"
      content="text/html; charset=utf-8"
    />
    Code (markup):
    3) ... and this is the important step, make sure your SERVER is configured to deliver the files in question as UTF-8.

    This can be set in the Server software's configuration/ini file... for Apache you'd add this to the httpd.conf file:
    AddDefaultCharset utf-8
    Code (markup):
    You can also do it in the .htaccess thus targeting just .html files:
    AddCharset UTF-8 .html
    Code (markup):
    Or if you are serving it as PHP, there's a function called 'header' that lets you set the header manually.

    header('Content-Type: text/html; charset=utf-8');
    Code (markup):
    You must choose a way for the server to send the correct HTTP header or it will NOT work, no matter what you say in your HTML or how you save it from the editor, because what the server sends as a HTTP response trumps everything else!
     
    deathshadow, Apr 3, 2013 IP
  5. mumfry

    mumfry Active Member

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    hello all
    thanks for all the help
    i found that adding this to the header of my pages html did the trick
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    Code (markup):
    would this affect anything else
     
    mumfry, Apr 3, 2013 IP