diff --git a/ChangeLog b/ChangeLog index bed97571a..051904632 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ db_details_structure.php, tbl_select.php: fix IE font size problem, redesign search and export pages, thanks to Michael Keck (mkkeck) + * libraries/string.lib.php: bug #975290, wrong internal encoding + for hebrew, thanks to Moshe Bergman (moshe_be) 2004-06-17 Alexander M. Turek * libraries/dbi/mysql.dbi.php: Removed debug code. diff --git a/libraries/string.lib.php b/libraries/string.lib.php index bedb9defc..5bb427543 100644 --- a/libraries/string.lib.php +++ b/libraries/string.lib.php @@ -2,7 +2,6 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: - /** Specialized String Functions for phpMyAdmin * * Copyright 2002 Robin Johnson @@ -17,7 +16,13 @@ $GLOBALS['PMA_allow_mbstr'] = @function_exists('mb_strlen') && substr($GLOBALS['charset'], 0, 8) != 'windows-'; if ($GLOBALS['PMA_allow_mbstr']) { - mb_internal_encoding($GLOBALS['charset']); + // the hebrew lang file uses iso-8859-8-i, encoded RTL, + // but mb_internal_encoding only supports iso-8859-8 + if ($GLOBALS['charset'] == 'iso-8859-8-i'){ + mb_internal_encoding('iso-8859-8'); + } else { + mb_internal_encoding($GLOBALS['charset']); + } } // This is for handling input better