Re: [PHP] HTML form data to utf-8?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2007
Richard Lynch
 
Posts: n/a
Default Re: [PHP] HTML form data to utf-8?

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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0