[nycphp-talk] readfile make single and double quotes odd characters.
Daniel Convissor
danielc at analysisandsolutions.com
Sun Mar 28 23:39:45 EST 2004
On Sun, Mar 28, 2004 at 04:00:49PM -0800, Chris Shiflett wrote:
> At first glance, this sounds like Microsoft Word might be involved
> somehow. It replaces single quotes, double quotes, hyphens, and ellipses
> with invalid characters.
I didn't look at the website mentioned in the initial post nor was it
clear what the person was talking about, but I too have an inklink thats
what they were talking about. If that's the case here, this should prove
handy:
$Data = preg_replace('/[\x07\x95]/', '-', $Data);
$Data = preg_replace('/\x85/', '...', $Data);
$Data = preg_replace('/[\x91\x92]/', '\'', $Data);
$Data = preg_replace('/[\x93\x94]/', '"', $Data);
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list