PHP blog content infected with mysterious characters

Since building a simple blog tool a few weeks ago I have been wrestling with some mysterious characters that infect the users input. The user in questions is using a Windows system that for some reason enters characters like " or - in a none standard way, characters with ASCII code in the region 145-150. The result, blog entries with stuff like ?�� as a single character!

Anybody have an idea why this is happening and more crucially how I can eradicate it!

I know sometimes Firefox will display some characters oddly.

are you using IE of Firefox?

You can try filtering out the ‘unwanted’ characters with regular expressions.
But like Peg110 said: Firefox is known to change such characters into crazy stuff.

Sponsor our Newsletter | Privacy Policy | Terms of Service