Index: branches/RC/core/kernel/languages/phrases_cache.php =================================================================== diff -u -N -r9363 -r10098 --- branches/RC/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 9363) +++ branches/RC/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 10098) @@ -73,15 +73,15 @@ $this->Phrases = $this->Conn->GetCol($query,'Phrase'); /*foreach($phrases as $phrase => $tanslation) { - $this->AddCachedPhrase(strtoupper($phrase), $tanslation); + $this->AddCachedPhrase(mb_strtoupper($phrase), $tanslation); }*/ $this->Ids = $ids; $this->OriginalIds = $ids; } function AddCachedPhrase($label, $value) { - $label = strtoupper($label); + $label = mb_strtoupper($label); $this->Phrases[$label] = $value; } @@ -123,7 +123,7 @@ if( strlen($label) == 0 ) return ''; $original_label = $label; - $label = strtoupper($label); + $label = mb_strtoupper($label); if(isset($this->Phrases[$label])) { $translated_label = $this->Phrases[$label]; // debug mode is checked directly to improve performance @@ -195,8 +195,8 @@ */ function CmpParams($a, $b) { - $a_len = strlen($a); - $b_len = strlen($b); + $a_len = mb_strlen($a); + $b_len = mb_strlen($b); if ($a_len == $b_len) return 0; return $a_len > $b_len ? -1 : 1; }