On 28/02/2008, shimi <[EMAIL PROTECTED]> wrote: > It can be a UTF-8 problem in general - PHP has many functions that are not > UTF-8 aware, which is why we have the mbstring functions... which are > equivalent to historical PHP functions, but work well on multibyte > strings... there's even an option to overload the mbstring functions on top > of the old functions, see: > http://il.php.net/manual/en/ref.mbstring.php#mbstring.overload > > However, I can't see an mbstring equivalent for preg_replace (while > ereg_replace does have one...) - which might suggest one of two options: a) > preg_replace is utf-8 ready or b) mbstring functionality doesn't support a > function for preg_replace... I know this might not be a too helpful comment, > but I tried my best...
Thanks, Shimi. It seems that preg_replace does not work on multibyte (utf-8) strings because that would be too slow. I'm looking for an alternative, and you may have just found it. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?