OK, I have been trying to find a solution to this for a while and can't seem to figure it out, so perhaps someone out there has found a solution.
I have built a content management system in PHP using a MySQl database. The clients usually work in Microsoft Word to create the content, they then go to the site and cut and paste the code to forms, which then submit it to the database.
The problem is Microsoft Word makes characters like:
1)“
2)‘
3)’
4)”
5)–
6)…
OK the above are likely garbage so they should look like this:
1)"
2)'
3)'
4)"
5)-
6)...
How do I go about translating them from the garbage to the good. I have tried ereg_replace and it does not work, try it out, put the crap characters in a textarea submit it and try and ereg_replace, and it doesn't work!!!
Anyone know the solution to this?
-Chris