Results 1 to 2 of 2

Thread: Help with BAN SIGN - html

  1. #1
    Join Date
    Jun 2010
    Location
    In live in Berlin.
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Angry Help with BAN SIGN - html

    Hi,
    Im getting this strange sign when browsing:

    PHP Code:
     
    Page code in Firefox looks like this:

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    html xmlns="http://www.w3.org/1999/xhtml">
    <
    head
    What did I do wrong in DOCTYPE, any suggestions?

    Thanks!
    Last edited by kirsten; 07-30-2010 at 11:51 AM. Reason: added stuff

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It sounds like a character encoding problem. This is not from the doctype. You might be able to fix this by specifying an encoding in a meta tag.

    For example:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    That's for unicode (UTF8). You might need another encoding... you didn't post enough information for anyone to know that, though.

    Most importantly, just make sure that all of your pages use the same encoding. Usually UTF8 is best for any pages that have unusual (non-English) characters, but then it must still be consistent in every aspect: such as the document encoding for the .htm text file, in addition to the html markup, or for example also in a database if you are getting information from a database. And make sure your html editor (program) is compatible with the format and using the same format as you specify in the html. If even one piece is different, you will get weird characters. Also, for this reason, just cutting and pasting can sometimes generate weird characters, so be careful about that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •