gaps, excess characters, include files & BOM

I must have spent a good hour trying to work out why I had a random full stop on my web page tonight.  After adding in test echo’s here and there I worked out that it appeared where my include file was.  I searched google but I was looking for the wrong thing.  Anyway after a good deal of searching I have it sussed.

All my web pages are encoded using UTF-8 but for some reason the include page was also adding a Unicode signature or Byte Order Mark (BOM).  As I’m using Dreamweaver it was easy to fix.  It was just a matter of Modify > Page Properties >Title/Encoding and removing the tick from Include Unicode Signature (BOM).

Phew, it was that easy.  I hope you find this answer before you spend all your time looking for a fix.

Advertisement

About narissa71

leaving a cyber footprint for years to come
This entry was posted in html, php. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s