RE: [PHP] Character Question

From: Date: Fri, 12 Mar 2004 22:24:48 +0000
Subject: RE: [PHP] Character Question
Groups: php.general 
Request: Send a blank email to php-general+get-180296@lists.php.net to get a copy of this message
David Westbrooks wrote: > I have articles held in a MySQL database for a law firm. When I pull > the information from the DB and display it, words like "that's" are > shown as "that\'s". To take care of this problem I have done this: > $newsart = eregi_replace("\\\'","'", $newsart); > > Is there a better way to handle this to catch all irregular > characters? > > Thank you for your help in advance. > > -Dave > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004 http://www.php.net/stripslashes

« previous php.general (#180296) next »