Forum Moderators: coopster

Message Too Old, No Replies

Mystery Character Appearing on Page

What the hell is a 

         

cfe_admin

6:11 pm on Apr 30, 2007 (gmt 0)

10+ Year Member



I'm working on PHP page that includes another PHP file. Displayed on the page, right at point of the include, are the following characters on a line by themselves:



I have much hate for these three characters.

If I insert a line on the FIRST line of the included file, it appears directly after the characters. If I insert a word JUST BEFORE the include in the main file it appears directly before the characters. Everything else is functioning normally.

Where are they coming from...?

dreamcatcher

6:18 pm on Apr 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

UTF-8 BOM should bring some interesting stuff up on Google. A simple fix should be to change your page charset to utf-8.

dc

jatar_k

6:19 pm on Apr 30, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> I have much hate for these three characters.

hahahaha, that made my day

one thing I have seen is if the file was created on a mac and then you edit it on a pc you can get these invisible to anything but a browser characters.

regardless of whether that is the actual cause I usually cut and paste the contents of the file into a new file and delete the old, this usually fixes it.

cfe_admin

4:52 pm on May 1, 2007 (gmt 0)

10+ Year Member



Yep, got it remedied. I am in your debt... :-]