Welcome to WebmasterWorld Guest from 184.108.40.206
The characters above have been showing up in my html files that are running php scripts. The script is running just fine, except for those mysterious characters that sit a top the page.
The characters only show up when viewed in a browser, I cannot see them in the html or php script files themselves. Does anyone have a clue where they come from?
I create my php files using notepad and occasionally I'll edit them with DreamweaverMX.
I usually open notepad and write the php there, then save it as filename.php, Then I upload the file to my server with DreamweaverMX. I have edited the files in Dreamweaver a few times after seeing those spurious characters appearing on the page. Nothing worked to get rid of it.
I think you might be on to something when you mentioned ASCII. I do not see an option in DreamweaverMX to choose transfer type. Or maybe I just don't know how to do it. I'll check my server upload feature or I'll try using ws-ftp for upload. I'll let you know how it goes.
After editing the file online I no longer see those charcaters on the page. Something happened to the file during upload.
Is it possible that you might be seeing a unicode BOM [unicode.org], a remnant of looking at a unicode text in a non-unicode environment. Does that sound possible?
Possibly big-endian text in a low-endian environment?
Perhaps Dreamweaver doesn't know about .PHP files, and so assumes them to be binary...?
Look for the setting in your preferences/options that lists the types to transfer as ASCII, and add .PHP to the list.
In WS_FTP it's in the Options->Extensions section.
Just guessing, but I'll bet you're on the right track.
In DW MX 2004 (my version) you can dis-include the BOM signature by doing the following:
Modify > Page Properties > Title/Encoding
Now try and find your Unicode Normalization form and look right below it you will see INCLUDE UNICODE SIGNATURE (BOM) if its check uncheck it, if its not check then check it, save the file and then go back in and uncheck it!