Re: weird characters problem

From: Date: Fri, 26 May 2006 14:41:53 +0000
Subject: Re: weird characters problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-236951@lists.php.net to get a copy of this message
the problem you have in that the data in the DB is slightly borked (something that occurred/occurs at the time it's first entered into the DB). read the section of the manual that Brad pointed out in his reply to learn about what is going, how to do it properly, etc - but in the short term it looks like you'll have to run stripslashes() on the data before running it through htmlentities(); Angelo Zanetti wrote: ...
thanks it works well but now say the user has entered: My "FIrst" book it gets returned as My \"FIrst\" book is there a way for it to be returned as it was originally entered? thanks again!


« previous php.general (#236951) next »