Managed Server
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: UTF-8-BOM ()

    walid

    • Frisch an Board
    • Beiträge: 81
    UTF-8-BOM ()
    am: 11. Oktober 2011, 13:53:50
    i have this () on the top left side of the website!
    how can this be fixed!
    someone in the forum it is due to UTF-8-BOM () !!

    Linkback: https://www.modified-shop.org/forum/index.php?topic=15940.0

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: UTF-8-BOM ()
    Antwort #1 am: 11. Oktober 2011, 14:17:44
    Find and delete the characters in the shop-files.

    The freeware grepWin will help you to find the characters, see: FAQ: Liste wichtiger Freeware- & OpenSource-Programme für die Shop-Erstellung

    P.S.: Please avoid posting problems twice. You already posted this here: Mandalay - Asiatische und Orientalische Wohnkultur

    Regards

    Torsten

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: UTF-8-BOM ()
    Antwort #2 am: 11. Oktober 2011, 16:42:20
    I couldn't find where! i looked into the index, template index, nothing found!
    in Firebug, i found this:

    Code: PHP  [Auswählen]
    <body>
    
    <div id="wrap">

    so it is something to deal with the body

    h-h-h

    • modified Team
    • Beiträge: 4.562
    Re: UTF-8-BOM ()
    Antwort #3 am: 11. Oktober 2011, 17:08:13

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: UTF-8-BOM ()
    Antwort #4 am: 11. Oktober 2011, 17:50:58
    in "/includes/hearder.php" i changed the charsets to utf-8, so the problem disappeared but then the ö is not appearing correctly but instead a square!
    so i am near the solution but i made another problem
    h-h-h, i read all articles and solution, all point to a charset prob, they said it is either in header or application-top or index.html, but in the 2 latter i couldn't find the charset only in header!

    Matt

    • Experte
    • Beiträge: 4.241
    Re: UTF-8-BOM ()
    Antwort #5 am: 11. Oktober 2011, 19:32:31
    Saving "header.php" as ISO without any BOM should solve the problem.

    h-h-h

    • modified Team
    • Beiträge: 4.562
    Re: UTF-8-BOM ()
    Antwort #6 am: 11. Oktober 2011, 19:46:44
    Or word-wraps/spaces (some editors create them) after the ?> at file ends can produce this error.

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: UTF-8-BOM ()
    Antwort #7 am: 11. Oktober 2011, 21:42:17
    i applied all the modification
    saved the header as utf-8, then as ANSI, then as utf-8 without BOM, then iso 8895-1.

    i checked, there is no space or word-wraps.

    the only working one is the utf-8 and the  gone but the ö can't be displayed correctly, the others ä or ï are okey!
    so the prob is there somewhere! but my little mind can't find it!
    here is the original code:

    Code: PHP  [Auswählen]
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>" />
    if i change it to
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    the it works even if i don't save the file in the desired way!

    P.S.: I even tried a new header.php from the download files ( the original files of modified eCommerce Shopsoftware) and upload it via ftp but the same thing! wondering there if it is really from the header!

    Matt

    • Experte
    • Beiträge: 4.241
    Re: UTF-8-BOM ()
    Antwort #8 am: 12. Oktober 2011, 11:38:26
    Changing the charset is everything but a good idea! Don't do it!

    From where the  shows up most likely your templates index.html is the reason. Make sure it's ISO and has no BOM. Use Notepad++ to do so.

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: UTF-8-BOM ()
    Antwort #9 am: 12. Oktober 2011, 12:29:35
    thank you so much Matt! you are really an expert! and me who spent a long time on the header. :)

    it was solved from the first try. :) thank you again