|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-16 17:33 UTC] vlad@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
<?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 :(( ?>