Strange characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Strange characters

Post by aceconcepts »

Hi,

I have "" appear at the top of my page! What is this?

Take a look here http://www.raleigh.flump.net/~q2q/dev/e ... ge=newUser

Here is my code:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Q2Q - EMSys</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="styles/cms/global.css" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle2.css" />

<script type="text/javascript" src="chromejs/chrome.js">

/***********************************************
* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

</head>

<body style="height:100%;">

<?
/*TOP MENU 
		- this stays constant throughout the system */

include"topDropDownMenu.php";

/*END OF: TOP MENU */



/*STATUS BAR 
		- this is variable throughout the system
		- dependencies: url variables */

include"statusBar.php";

/*END OF: STATUS BAR */


/*LEFT MENU 
		- this is variable throughout the system
		- dependencies: url variables, page requested */

echo "<div style=\"float:left; width:180px; position:absolute; height:80%; border:1px solid #666666; padding:5px; padding-top:100px;\">";
echo "LEFT MENU";
echo "</div>";

/*END OF: LEFT MENU */



/*CONTENT REGION 
		- this is variable throughout the system
		- dependencies: url variables, page requested */

//CONTAINER TO HOLD AND POSITION CONTENT
echo "<div style=\"width:80%; padding-top:5px; padding-left:195px; border:1px #000 solid;\">";

	if(!isset($_REQUEST['page']))
	{
		$page = "default";	//IF THE PAGE VAR HASN'T BEEN PASSED VIA URL THEN SET DEFAULT
	}
	else
	{
		$page = $_REQUEST['page'];	//GET PAGE VAR FROM URL
	}
	
		include "pages/" . $page . ".php";		//DISPLAY REQUESTED PAGE

echo "</div>"; //END OF CONTAINER

/*END OF: CONTENT REGION */
?>

</body>

</html>
Forgive the untidyness of it, just trying to sort out this problem!!!

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Your output is iso-8859-1 encoded. Therefore  stands for the three bytes EF BB BF. And that's a utf-8 BOM
see http://en.wikipedia.org/wiki/Byte_Order_Mark
Post Reply