HTML Entities

Discussion in 'HTML & Website Design' started by Evoleto, Oct 12, 2005.

  1. #1
    Hello,

    I use a particular script that is not very customizable displaying pages in two languages: English and German.

    In the database I coded the german charcters as HTML entities.

    It works fine in the pages, but in the title it displays the code, which is not very user friendly. I also tried numeric entities, but I get the same result.

    The used html charset is iso-8859-1.

    Any advice to fix the title of the page?

    Thank you!
     
    Evoleto, Oct 12, 2005 IP
  2. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #2
    If I understand you correctly...

    You cannot have HTML formatting in your title tags.
     
    Crazy_Rob, Oct 12, 2005 IP
  3. Evoleto

    Evoleto Well-Known Member

    Messages:
    253
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Ok, but how can I get the special german characters into the title?
     
    Evoleto, Oct 12, 2005 IP
  4. Evoleto

    Evoleto Well-Known Member

    Messages:
    253
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #4
    I forgot to mention I tried to use HTML entities after the regular ASCII german characters were displayed as a question mark (?).

    The solution was quite easy, I commented the default character set from the Apache configuration (httpd.conf):

    
    # Specify a default charset for all content served; this enables
    # interpretation of all content as UTF-8 by default.  To use the
    # default browser choice (ISO-8859-1), or to allow the META tags
    # in HTML content to override this choice, comment out this
    # directive:
    #
    AddDefaultCharset UTF-8
    
    Code (markup):
    The AddDefaultCharset directive was causing the trouble.
     
    Evoleto, Oct 13, 2005 IP