Have you tried a regular expression. Something like 

ereg_replace("[^[:alnum:]|[:space:]|[:punct:]@]", "", $string);

to clean the string?

Gerard O

On Thu, 20 Dec 2001 17:02:58 -0500, jimtronic wrote:

>Occasionally, I have a problem dealing with some of the special 
>characters from text authored in MS Word, and then pasted into a web 
>form. It seems that somewhere something bad happens and what 
>eventually gets put into mysql via php is not correct.
>In particular, I have trouble with apostrophes and accented vowels.
>Is the solution to disallow users (it's an admin, so this is 
>realistic) from pasting from MS Word?
>Jim Musil
>Multimedia Programmer
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to