Re: HTML form data to utf-8?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux