preg_match_all and arabic text encoding

From: Date: Wed, 23 Apr 2003 17:26:41 +0000
Subject: preg_match_all and arabic text encoding
Groups: php.general 
Request: Send a blank email to php-general+get-145066@lists.php.net to get a copy of this message
greeting all !! I got a small script where i use preg_match_all to parse html file using utf-8 encoding. My html files are in many languages (about 6) and everything work fine expect with the arabic encoding. if (preg_match_all ("/(\<!-- demo --\>)(.*)(\<!-- \/ --\>)/Usi", $fcontents, $matches)) { echo 'find it ...'; } else { echo 'doesn't find it ...'; } and of course when files are in arabic, i get always no result (of course the pattern exist) .... :D Any help ? Thanks Hatem

« previous php.general (#145066) next »