Re: Re: Convert Smart Quotes to Sraight Quotes - Need Help!

From: Date: Wed, 08 Sep 2004 00:15:35 +0000
Subject: Re: Re: Convert Smart Quotes to Sraight Quotes - Need Help!
Groups: php.general 
Request: Send a blank email to php-general+get-196089@lists.php.net to get a copy of this message
-------------- Original message from Monty : -------------- > Anyone! I'm out of online resources and answers. I guess this isn't possible > to do... > > > I've been reading for the last three days about character encodings and > > such, but, have still been unable to figure out what I think should be a > > simple solution. > > A quick google search led me to http://us4.php.net/htmlentities If you scroll down the page or search for "smart" there's a note from 01-Apr-2004 02:49 that gives a function for replacing these characters with their htmlentities. You will have to change the substitution array to what you want to replace them with, but that should be easy. I didn't test to see if the function actually works, but the character values it uses look correct.

« previous php.general (#196089) next »