Odd Characters in HTML email

Hello all!

I’m trying to generate a HTML email from ASP.Net. The emailing part works fine, but there’s extra characters in the message that I can’t track down.

Here’s the source of the message:


<html>
<head>
<title>Sample Email</title>
</head>
<body>
<style type="text/css">
div{
font-family: Arial, sans-serif;
font-size: 12px;
color: #313131;	
}
</style>
<div>
<img src="http://www.mysite.com/images/logo.png" border="0" width="306" height="80"><br>
<br>
Content of message goes here.
</div>
</body>
</html>

When I receive the message in Outlook and in my Cox Webmail, there’s odd characters present. In Outlook, they appear as:



In case they don’t translate here, it an i with two dots over it, a raquo looking character and an upside-down question mark.

They appear right before the image in the mark-up. I’ve tried removing the style block and the image, but it’s still here.

Any idea where this is coming from?

Thanks!

It’s because you saved the file with a BOM. This thread explains it all: http://www.sitepoint.com/forums/showthread.php?t=692410

:slight_smile: