Page 1 of 1

mysql database spitting out crazy characters!

Posted: Tue Sep 15, 2009 9:48 am
by bbaudoin
hey,
I have a bunch images stored in a database. For some reason, that i can't figure out, the database started spitting out crazy characters. The problem is, I have a cropping tool on the back end of my site to be able to recrop your thumbnail and resave it. nNow, with these crazy characters popping up, it's started rendering the thumbnails black!!!
any thoughts?

these are the characters it's throwing in front of my image directory inexplicably:
images/thumbs/155954.jpg

ie:


I can't find what change I could have made to trigger this. it really makes no sense. There's no extra characters when you browse the database. What's wierd to is it worked for a bit, then stopped working. Also, my cropping script, I had it echo out where it was spitting out to image file too, at first, no extra characters, but if you hit the back button in the browser, then the forward button to return, the characters have miraculously appeared!!!!!!
goblins. :crazy:
Anybody ever had similar issues?


-Bayard

Re: mysql database spitting out crazy characters!

Posted: Tue Sep 15, 2009 9:57 am
by bbaudoin
just did some reading. perhaps its the editor i'm saving my php files with? i switched to aptana when it all started :( before, all these files were written in dreamweaver. Seems its something to do with the BOM and UTF-8. agggh! this is terrible.

Re: mysql database spitting out crazy characters!

Posted: Tue Sep 15, 2009 11:11 am
by Ollie Saunders
You can usually just tell your editor to stop inserting BOMs. There should be a setting somewhere.