Tuesday, October 12, 2010

Weird Characters in my PHP Template ()

Well this is a quick note for anyone that may be having this little particular issue. Basically, for the past day I've been working on a PHP/mySQL/IIS7.5 on Windows Server 2008 R2 install. Which has been a little bit of a challenge and I will blog some of my findings soon.

Basically, I was making an edit to files on the server using notepad++ and it appears it was saving the file as UTF-8, which is what I presumed was correct but after reading the following entry I changed it to UTF-8 without BOM and it went away.

This is Byte Order Mark of the Unicode Standard and in PHP files they appear as literal text on the page. So just remove the BOM when you save and presto! Gone!

Original Post where I was schooled:
http://forum.joomla.org/viewtopic.php?t=275353

PHP and MySQL Web Development (4th Edition)

Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)

No comments:

Post a Comment