Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts

    This:  is on EVERY SINGLE ONE of my pages! Why? How?

    The site is coded in PHP Includes, and and I have it set up in tables/divs. (yes... I know I'm a dork and shouldn't do it that way...)

    www.qualitygrainservices.com

    Those charactors () are on everypage at the end of the area where the main content goes. Why? Is it becuase I'm using the header and footer includes that are seperating the table?

  • #2
    New Coder
    Join Date
    Sep 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I viewed your page source and found it in there, you should be able to just get rid of it.

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As Technique said, you should be able to rid of it by just finding it in your source. Doesn't seem like any sort of parse error.. The browser is just looking at it as text...

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It doesn't seem to happen in Firefox. This usually occurs when the editor you are using uses special characters for line breaks. The whitespace might be read by the browser. What editor are you using?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    That encoding relates to the character set that the page is using. Check what charset you have the page set to use. For example, if you have charset=UTF8 try changing it to ISO-8859-1
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by felgall View Post
    That encoding relates to the character set that the page is using. Check what charset you have the page set to use. For example, if you have charset=UTF8 try changing it to ISO-8859-1
    Correct. Though the following page is for .NET programming with XML, it does explain what is going on:
    http://www.thescripts.com/forum/thread178473.html

    Basically, your pages have the UTF-8 BOM (UTF-8 Byte Order Mark) inserted at the beginning of the document. Here is an article from the W3C regarding this:
    http://www.w3.org/International/ques...tf8-bom.en.php

    The W3 link was taken from the following page:
    http://www.w3.org/International/geo/...003/questions/
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello

  • #7
    New Coder
    Join Date
    Oct 2006
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rpgfan3233 View Post
    Correct. Though the following page is for .NET programming with XML, it does explain what is going on:
    http://www.thescripts.com/forum/thread178473.html

    Basically, your pages have the UTF-8 BOM (UTF-8 Byte Order Mark) inserted at the beginning of the document. Here is an article from the W3C regarding this:
    http://www.w3.org/International/ques...tf8-bom.en.php

    The W3 link was taken from the following page:
    http://www.w3.org/International/geo/...003/questions/
    Thanks so much! Now I know why it's there. However- I know nothing about UTF-8 or anything like that. How would I change it?
    Last edited by KELS!; 10-12-2006 at 03:44 PM.

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by KELS! View Post
    ... I've searched the codes multiple times- it's not there.
    Many editors do not display the BOM. When you switch coding types, the editor switches BOM codes or eliminates them alltogether. I use MetaPad and use control-1 to kill the codes.

  • #9
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by http://www.w3.org/International/questions/qa-utf8-bom.en.php

    By the way

    You will find that some text editors such as Windows Notepad will automatically add a UTF-8 signature to any file you save as UTF-8.
    If you use Windows Notepad, you could be experiencing that problem. When you save it, reopen it and see if the characters appear. If not, try another simple text editor, such as Wordpad, or the simplest text editor available with Windows: EDIT.COM.

    That page also states that you can use a script to remove the BOM. Since you are using PHP, you might be able to come up with something that removes it.
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello

  • #10
    New Coder
    Join Date
    Oct 2006
    Posts
    46
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks everyone for the help!! I fixed it! I'm still not exactly sure how- but thanks so much!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •