|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-01 08:16 UTC] derick@php.net
[2004-06-01 11:08 UTC] fixxxer at netvision dot net dot il
[2004-06-09 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ to check if setlocale (LC_ALL,"hebrew") works i tried printing the date in hebrew as well. the problem is wierd. the date is in hebrew, but regex still having problems with the hebrew. \w that suppose if the text contains legal chars (and _) works perfectly with english but makes problems with hebrew. if i ain't using setlocale he thinks that "?" is not a char. if i do use setlocale he thinks that about all the hebrew letters. Reproduce code: --------------- <?php setlocale (LC_ALL,"hebrew"); $long_date = strftime("%A, %d %B %Y"); echo $long_date . "<br />"; $str = "?????"; if (preg_match('/[^\w\s\-\.\@]/i',$str)) { print "wrong!"; } ?> Expected result: ---------------- ??? ?????, 01 ???? 2004 Actual result: -------------- ??? ?????, 01 ???? 2004 wrong!