How would I go about replacing weird quotes?
ex: ‘,’, “, and ”.
First two lines work, third one does not.Code:$vCLEANED = str_replace("'", "\'", $vSlashes); $vCLEANED = str_replace('"', '\"', $vCLEANED); $vCLEANED = str_replace("’", "\'", $vCLEANED);
These are apparently latin extended A and B
http://www.ascii.cl/htmlcodes.htm (bottom)




Reply With Quote