php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21386 Hebrew problem...
Submitted: 2003-01-03 05:42 UTC Modified: 2003-01-03 09:33 UTC
From: eva24 at bezeqint dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.3.0 OS: Win Nt
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eva24 at bezeqint dot net
New email:
PHP Version: OS:

 

 [2003-01-03 05:42 UTC] eva24 at bezeqint dot net
Hi,
I'm from Israel and I have a problem with Hebrew + PHP.
I am using the function PREG but one of the Hebrew letters, PHP doesn't recognize as a letter (The letter is "?").
That makes the following problems:
\b- if the letter start or finish a word PHP won't consider her.
\w-PHP doesn't consider her as a letter? and more?
I hope there is something to do about it.

P.S ? Excuse me for any spelling problems, I don't write so good in English?
Thank you very much.
Ido. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-03 08:17 UTC] michael dot mauch at gmx dot de
This might be a locale problem. Try setting your locale, e.g. like so:

setlocale(LC_CTYPE,"Hebrew");

Without knowing your locale, PHP (or the underlying C library) has no chance of knowing which character codes are letters and which are punctuation (the letter you wrote looks like a division symbol in my locale with its ISO-8859-1 character set).
 [2003-01-03 08:26 UTC] eva24 at bezeqint dot net
Thank you very much, You helped me a lot.
I don't understand why only this letter had this problem, but...
It's working know so who cares.
Thanks.
 [2003-01-03 09:33 UTC] tularis@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC