garygas Posted August 26, 2008 Share Posted August 26, 2008 I seem to be getting this strange code at the top of my PHP pages on my site. Does anyone know what it could be? Source view of the top of the PHP page... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="3600" /> <meta name="revisit-after" content="2 days" /> <meta name="robots" content="index,follow" /> <meta name="publisher" content="Published by Scooters Ltd" /> <meta name="copyright" content="..." /> <meta name="author" content="..." /> <meta name="distribution" content="global" /> <meta name="description" content="Your page description here ..." /> <meta name="keywords" content="Your keywords, keywords, keywords, here ..." /> <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/resources/css/scooters_setup.css" /> <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/resources/css/scooters_text.css" /> <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/resources/slimbox/css/slimbox.css" /> <script type="text/javascript" src="/resources/slimbox/js/mootools.js"></script> <script type="text/javascript" src="/resources/slimbox/js/slimbox.js"></script> <link rel="icon" type="image/x-icon" href="/resources/img/favicon.ico" /> <title>...</title> </head> <body> However there is no '' in the original PHP page. Any help would be appreciated as I am completely baffled by this one!! Quote Link to comment Share on other sites More sharing options...
Cosizzle Posted August 26, 2008 Share Posted August 26, 2008 i found this here http://forums.expression.microsoft.com/en-US/web/thread/41ec0edf-a897-4a7d-b7c5-e5287c5f56fd/ The ghost characters are called a BOM. EW defaults to using a UTF-8 format which requires text files to start with those BOM characters. The only fix I can tell is to place the following in the header <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> There are some fixes to this in EW Beta but I can't say for sure as I'm having install trouble. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 26, 2008 Share Posted August 26, 2008 As was posted in another answer not too long ago: That's a UTF-8 BOM. Double check the character sets and/or encodings that your editor and server are using. Ken Quote Link to comment Share on other sites More sharing options...
garygas Posted August 26, 2008 Author Share Posted August 26, 2008 Thanks for the replies guys! Still no luck! Before I posted on here I had a little play around with the Content Type and DOCTYPE lines and after trying all sorts of combinations got no closer to solving it?! Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 27, 2008 Share Posted August 27, 2008 In your editor make sure you save your file as plain ASCII. Ken Quote Link to comment Share on other sites More sharing options...
garygas Posted August 27, 2008 Author Share Posted August 27, 2008 Hit the nail on the head there!! I have just tried that on a hunch and it only worked!! Fanks guys!! :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.