Re: HTML form data to utf-8?
| From: | Richard Lynch | Date: | Tue, 20 Feb 2007 23:18:48 +0000 |
| Subject: | Re: HTML form data to utf-8? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249137@lists.php.net to get a copy of this message | ||
On Tue, February 20, 2007 3:49 pm, Jay Paulson wrote:
> Just a general question that I don¹t know the answer to. I have users
> inputting data via an HTML form. I want to make sure that if they cut
> and
> paste from say Word that all the weird characters are converted to
> plain
> text (preferably utf-8 since that¹s what my database is). How would I
> go
> about doing this?
There are several examples in User Contributed Notes at:
http://php.net/str_replace
Probably some more examples in preg_replace.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?