#37736 [Opn->Bgs]: Trouble with letter "Yo" in Russian language

From: Date: Thu, 08 Jun 2006 06:42:20 +0000
Subject: #37736 [Opn->Bgs]: Trouble with letter "Yo" in Russian language
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98160@lists.php.net to get a copy of this message
ID: 37736 Updated by: tony2001@php.net Reported By: evgueni at magiaworld dot org dot ru -Status: Open +Status: Bogus Bug Type: PCRE related Operating System: Windows XP PHP Version: 5.1.4 New Comment: Not PHP problem. Please report it to PCRELib developers. Thank you. Previous Comments: ------------------------------------------------------------------------ [2006-06-07 23:58:51] judas dot iscariote at gmail dot com I Understand your problem, however, this is not a bug, this is a much more complex problem, that will be addressed in PHP6 only. ------------------------------------------------------------------------ [2006-06-07 23:16:46] evgueni at magiaworld dot org dot ru Description: ------------ Good night! I have some troubles with letter "Yo" (it's the letter "e" with two points higher) in PCRE function preg_match. I have used the following code to understand, consists a variable $tmp of just letters or no. The script shows that doesn't consists. But it isn't right. Thank you. Eugene Smirnov. Reproduce code: --------------- <?php ... $tmp = "&#1073;&#1086;&#1073;&#1105;&#1088;"; if (preg_match("/^[&#1072;-&#1103;&#1040;-&#1071;]{0,}$/)){ echo "Good"; } else { echo "Bad"; } ... ?> Expected result: ---------------- I want to see the word "Good", because the word "&#1073;&#1086;&#1073;&#1105;&#1088;" consists of letter just. But i see the word "Bad". Actual result: -------------- No comment. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37736&edit=1

« previous php.bugs (#98160) next »