Re: Filter MS Word Garbage
| From: | Richard Lynch | Date: | Fri, 15 Sep 2006 22:52:05 +0000 |
| Subject: | Re: Filter MS Word Garbage | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241853@lists.php.net to get a copy of this message | ||
The user contributed notes on php.net for str_replace has several
solutions...
On Tue, September 12, 2006 5:02 pm, Kevin Murphy wrote:
> I have a web form where trusted people will be inputing information
> that they usually copy/paste out of MS Word. While the people are
> trusted... MS Word isn't. I keep getting garbage characters in there,
> usually associated with Smart Quotes. If I take the content out of
> the DB, throw it into BBEdit and use the convert to ASCII command
> that solves the problem.
>
> Is there some way I can filter/convert this information before it
> gets to the mysql database?
>
>
> --
> Kevin Murphy
> Webmaster: Information and Marketing Services
> Western Nevada Community College
> www.wncc.edu
> 775-445-3326
>
>
>
>
> --
> Kevin Murphy
> Webmaster: Information and Marketing Services
> Western Nevada Community College
> www.wncc.edu
> 775-445-3326
>
>
>
--
Like Music?
http://l-i-e.com/artists.htm