Re: Converting funky characters

From: Date: Mon, 29 Mar 2010 01:21:33 +0000
Subject: Re: Converting funky characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-303567@lists.php.net to get a copy of this message
On 03/29/2010 05:35 AM, Skip Evans wrote:
Hey all, What's the best way to filter/convert characters that don't translate properly from say news stories to HTML? For example, I have a form that people cut and paste the lead in paragraph from news stories they want to link to from their sites to the original. And of course things like long dashes, double quotes, single quotes, etc, always translate is wacky unprintables when they are rendered, and the user needs to edit them to replace them with standard characters. Is there way to filter this text through a function that will convert them to web friendly chars? Thanks, Skip
PCRE is your best friend for such problems. -- Nilesh Govindarajan Site & Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु !

« previous php.general (#303567) next »