Removing an octal character....
Posted: Tue Jul 12, 2005 6:32 pm
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
would suffice, but its leaving $orig unchanged.
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);