note 72510 deleted from function.preg-replace by nlopess

From: Date: Tue, 23 Jan 2007 12:44:49 +0000
Subject: note 72510 deleted from function.preg-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122067@lists.php.net to get a copy of this message
Note Submitter: maxi dot eschner at gmx dot de ---- Bug with /\s/ and à The command preg_replace('/\s+/', " ", $str); cuts the string off when an french à occurs in utf8 strings. Workaround: $str = preg_replace('/à/', "#agrave#", $str); $str = preg_replace('/\s+/', $whitespace, $str); $str = preg_replace('/#agrave#/', "à", $str);

« previous php.notes (#122067) next »