I am finding an extraneous  in a very simple cfm page. It does have a cfinclude of straight text named as a .cfm template. This character shows up with or without the cfinclude -- I add the cfinclude content into the main page and the character is still there. If I name the page .htm, no character. Charset is utf-8. This is driving me crazy!

<!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">
<head>
<title>Tactical Technologies</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
<link rel="stylesheet" href="mm_training.css" type="text/css" />
<link rel="stylesheet" href="menu_style.css" type="text/css" />
</head>
<body bgcolor="#254d59">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr bgcolor="#224c58">
		<td width="15" nowrap="nowrap"><img src="mm_spacer.gif" alt="" width="15" height="1" border="0" /></td>
		<td height="70" colspan="3" class="logo" nowrap="nowrap">Tactical Technologies <span class="tagline">| World Class Technology Solutions since 1984</span></td>
		<td width="4">&nbsp;</td>
		<td width="4">&nbsp;</td>
  	</tr>

	<tr bgcolor="#ab2428">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>

	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>

	<tr bgcolor="#c9cf65">
		<td width="15" nowrap="nowrap">&nbsp;</td>
		<td colspan="3" height="24">
    		<div>
			<ul class="menu">
				<li class="top"><a href="#" class="top_link"><span>HOME</span></a></li>
				<li class="top"><a href="#" class="top_link"><span>SERVICES</span></a>
					<ul class="sub">
						<li><a href="#">Custom Web Design</a></li>			
						<li><a href="#">eCommerce Implementation</a></li>
            			<li><a href="#">Automotive Sales Systems</a></li>
            			<li><a href="#">Network Design</a></li>
            			<li><a href="#">Security Systems</a></li>
            			<li><a href="#">Web Hosting</a></li>
					</ul>
				</li>
				<li class="top"><a href="#" class="top_link"><span>CONTACT US</span></a></li>
			</ul>
			</div>
		</td>
		<td width="4">&nbsp;</td>
		<td width="4">&nbsp;</td>
  	</tr>

	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>
	<tr bgcolor="#ab2428"> <!--- red lower border of menu --->
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>

	<!--- main body --->
	<tr bgcolor="white">
    	<!--- table for main body of page --->
        <td colspan="6">
        <table border="0">
        <tr>
        <!--- column 1 --->
        	<!--- picture --->
        	<td valign="top" bgcolor="#254d59" width="260" bgcolor="#254d59">
            <br />
        	<img src="mm_spacer.gif" width="20" height="1" /><img src="small_business_marketing_services.jpg" alt="Home Page Image" border="0" /><img src="mm_spacer.gif" width="20" height="1" /><br />
            <!--- contact us text --->
            <table border="0" cellspacing="0" cellpadding="0" width="252">
				<tr>
					<td width="252" class="sidebarText" id="padding"><a href="#">Contact Us:</a><br />
					<img src="mm_spacer.gif" width="20" height="1" />6200 Rockside Woods Blvd.<br />
        			<img src="mm_spacer.gif" width="20" height="1" />Suite 200<br />
					<img src="mm_spacer.gif" width="20" height="1" />Independence, OH  44131<br />
        			<img src="mm_spacer.gif" width="20" height="1" />216.769.3697&nbsp;<br />		
                    </td>
				</tr>
			</table>	
            </td>       
            
            <!--- border column --->
            <td width="30" bgcolor="white">&nbsp;</td>
            
             <!--- main body column  --->
        	<td valign="top" bgcolor="white"><br />
				<table border="0" cellspacing="0" cellpadding="0" >
				<tr>
					<td class="pageName"><p>Technology to Grow Your Business<br />
                    <hr color="#12a2ab" /></p></td>
				</tr>
				<tr>
					<td class="bodyText">
						<p>Tactical Technologies brings 27 years of IT experience to you and your business.  From network and hardware installation and maintenance to custom web presence and marketing or retail point-of-sale systems, our expertise can bring your business more success at a cost that fits your needs.</p>

						<p>Tactical Technologies works with you to build your business bottom line while building a strong relationship with you.  Our maintenance and support agreements and phased plan approach will allow your IT sophistication to grow in cooperation with your business plan.  Unlike most technology firms, we offer specialized marketing plans that include non-IT services such as print advertising and billboards that tie into your web presence design and focus.  Interested in bringing your brick-and-mortar retail into the internet sales arena?  We can guide you through a comprehensive online sales and marketing plan that takes advantage of your existing customer base while bringing in new customers.  We focus on your business' image and reputation as your primary asset.</p>
                        
                    <p class="logoband" valign="top"><marquee behavior="scroll" direction="left" scrollamount="3" style="background-color: #ffffff; overflow: auto;"><img src="coldfusionlogo.png" />&nbsp;<img src="microsoft-aspnet-logo.gif" />&nbsp;<img src="microsoft-sql-server-logo.gif" /><img src="php.gif" />&nbsp;<img src="accesslogo.gif.jpg" />&nbsp;<img src="big_commerce_partner.jpg" />&nbsp;<img src="reseller_cert_provider.png" />&nbsp;<img src="reseller_vars.png" /></marquee></p>
                	</td>
				</tr>             
				</table>
	 			<br />&nbsp;<br />	
    		</td>
            
            <!--- right border column --->
            <td width="30" bgcolor="white"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
     
  	</tr>
    </table>
    </td>
    </tr>
   
	<tr bgcolor="#b9c883">
	<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>

	<!--- footer --->
	<tr bgcolor="#ab2428">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>
	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>	
    <tr>
        <td colspan="6" bgcolor="#b9c883" class="footer"><img src="mm_spacer.gif" alt="" width="1" height="5" border="0" />&copy; 2011 TACTICAL TECHNOLOGIES<img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
    </tr>
	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>
    <tr bgcolor="#ab2428">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>
<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>	
  </tr>
</table>
</body>
</html>

I don't see a stray characters. If it only happens with .cfm files, check your Application.cfm/cfc files. It runs every time you request a .cfm page. So it might be the culprit.

I have no application.cfm nor cfc's.... :(

Did you check all directories in the heirarchy? Because the code you posted doesn't create that character when run as a .cfm page. Create a simple test page with just 1 line:
<cfoutput>#now()#</cfoutput>

If the character shows up, it's almost certainly an Application.cfm/cfc problem. If not, try copying the code into a new page. (Use a text editor like notepad). Does it still occur?

At the time I created the pages, there was only one directory (ie, no hierarchy at all). I have since put images in /images, styles in /styles. If you view the live page you'll see the character...

It's right below the marquee, and appears in both FireFox and IE.

.. and what happened with the test page? Does the character appear on ALL cfm pages or just that one?

If you view the source for the 2 pages, it's different. So what's the CFM code used to generate this section? It's not in the HTML you posted above.

src="images/linkedin.jpg" /></marquee></p>
                	</td>
				</tr>             
				</table>

	Â 			<br />&nbsp;<br />	
    		</td>

Sorry, I continued development on the htm page, yes the code is different (slightly) than what I posted. There are no includes, nothing cfml-specific. See source code for the public ip's I posted. I just got home from work, I will do a test page now.

Okay, I copied and pasted the code into notepad, pasted it back and no difference. <cfoutput>#now()#</cfoutput> does not have the error. I am now assuming it has to do with something in my css, but it is something that affects only cfml and not html? Never heard of such a thing.

There are two linked stylesheets. Took each one out separately, no change. Took both out, no change.

I copied the code into Notepad, then named it as test2.cfm, and no extraneous character... ??? I am using Dreamweaver CS3 for development, this is the first time I have used that (always used Studio)... ??

Thank you, "arghhh", issue solved. :)

Yeah, I've never used Dreamweaver. Probably some weird white space/encoding problem. Glad it's solved :)

the  occurs with extraneous spaces in cold fusion code.

No, it has nothing to do with space characters ie ascii 32

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.