Web Analytics Made Easy -
StatCounter This: ï»؟ is on EVERY SINGLE ONE of my pages! Why? How? - CodingForum

Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    I viewed your page source and found it in there, you should be able to just get rid of it.

    Comment


    • #3
      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...

      Comment


      • #4
        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!||||

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment


            • #7
              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!; Oct 12, 2006, 11:44 AM.

              Comment


              • #8
                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.
                Having said that, I've probably told you more than I know.

                Comment


                • #9
                  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

                  Comment


                  • #10
                    Thanks everyone for the help!! I fixed it! I'm still not exactly sure how- but thanks so much!

                    Comment

                    Working...
                    X