This is a discussion on Re: [PHP] HTML form data to utf-8? within the PHP General forums, part of the PHP Programming Forums category; On Tue, February 20, 2007 3:49 pm, Jay Paulson wrote: > Just a general question that I donıt ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|