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!! Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/ 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. Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/#findComment-626492 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 Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/#findComment-626493 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?! Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/#findComment-626496 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 Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/#findComment-626499 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!! :) Link to comment https://forums.phpfreaks.com/topic/121483-%C3%AF%C2%BB%C2%BF-at-the-top-of-my-pages/#findComment-626501 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.