Re: preg_match_all and arabic text encoding
| From: | Tom Rogers | Date: | Wed, 23 Apr 2003 23:10:55 +0000 |
| Subject: | Re: preg_match_all and arabic text encoding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145097@lists.php.net to get a copy of this message | ||
Hi,
Thursday, April 24, 2003, 3:26:41 AM, you wrote:
HB> greeting all !!
HB> I got a small script where i use preg_match_all to parse html file using utf-8 encoding. My
HB> html files are in many languages (about 6) and everything work fine expect with the arabic encoding.
HB> if (preg_match_all ("/(\<!-- demo --\>)(.*)(\<!-- \/ --\>)/Usi",
HB> $fcontents, $matches))
HB> {
HB> echo 'find it ...';
HB> } else {
HB> echo 'doesn't find it ...';
HB> }
HB> and of course when files are in arabic, i get always no result (of course the pattern exist)
HB> .... :D
HB> Any help ?
HB> Thanks
HB> Hatem
Try it with the u modifier ( > php-4.1.0 unix and > php-4.2.3 windows)
--
regards,
Tom