bug 975290

This commit is contained in:
Marc Delisle
2004-06-18 21:14:14 +00:00
parent 919bfd6646
commit 7708aba605
2 changed files with 9 additions and 2 deletions

View File

@@ -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 <me@derrabus.de>
* libraries/dbi/mysql.dbi.php: Removed debug code.

View File

@@ -2,7 +2,6 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
/** Specialized String Functions for phpMyAdmin
*
* Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
@@ -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