Thanks for your reply bubblenet but the problem was too widespread to post code so I kept looking into it and found the cause of the problem.
some of my files were in unicode format in my code eitior so I converted them to ASCII and the problem was solved.
It seems that in unicode format there is some sort of header info that even text editors don't see.
Note: to anyone that is getting these symbols  I was able to convert the offending files from unicode to ASCII with ultraedit.
All the best
Ant