...

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



KELS!
10-12-2006, 03:22 AM
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?

Technique
10-12-2006, 03:32 AM
I viewed your page source and found it in there, you should be able to just get rid of it.

stickfigure
10-12-2006, 04:17 AM
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...

_Aerospace_Eng_
10-12-2006, 04:57 AM
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?

felgall
10-12-2006, 08:16 AM
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

rpgfan3233
10-12-2006, 10:44 AM
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/questions/qa-utf8-bom.en.php

The W3 link was taken from the following page:
http://www.w3.org/International/geo/upload/2003/questions/

KELS!
10-12-2006, 03:33 PM
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/questions/qa-utf8-bom.en.php

The W3 link was taken from the following page:
http://www.w3.org/International/geo/upload/2003/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?

jalarie
10-12-2006, 03:50 PM
... 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.

rpgfan3233
10-12-2006, 04:06 PM
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.

KELS!
10-14-2006, 05:33 PM
Thanks everyone for the help!! I fixed it! I'm still not exactly sure how- but thanks so much!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum