Page 1 of 1

Removing an octal character....

Posted: Tue Jul 12, 2005 6:32 pm
by nielsene
I'm trying to import some data that happens to have an octal character that I'd like to replace before the import proceeds. I can't seem to get any of the str_replace or preg_replace to work. Any suggestions?

The character is a right, curving, closing single quote aka \222. I'ld like to replace it with a regular "symmetic" single quote '.

I had hoped that

Code: Select all

$import = str_replace("\222","'",$orig);
would suffice, but its leaving $orig unchanged.