Hello ,

From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  eregi_replace() doesn't work properly with Russian charset

<?php /****
Russian word "ÂÏÇ" equal to word "god" in English
 I was expected that eregi_replace() did the following
 found the word "god" in the $header and changed it to %#&#

 (it should work with "GOD", "God", "GOd" and
etc.)
 so with English word it works just ok!

 but then I'm try to use it with Russian word in the win1251 encoding it's
fails
 (but in my opinion it should work with "âïç", "âÏÇ",
"âïÇ" and etc.)****/

$header = "... âïç ..."; //contains word "GOD" (in
Russian (win1251))
$header = eregi_replace ("ÂÏÇ", "%#&#",
$header);//try to change word "ÂÏÇ" to %#&#
echo $header; // returns the $header unchanged :((
?>

Warning: Could not execute mail delivery program in /local/Web/sites/phpweb/bugs.php 
on line 101

Mail not sent!
Please send this page in a mail to [EMAIL PROTECTED] manually.  

-- 
Best regards,
 Ruslan                          mailto:[EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to