Character Question

From: Date: Fri, 12 Mar 2004 22:17:06 +0000
Subject: Character Question
Groups: php.general 
Request: Send a blank email to php-general+get-180295@lists.php.net to get a copy of this message
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

« previous php.general (#180295) next »