總網頁檢視次數

星期三, 3月 21, 2007

CentOS 3.8 PHP MbString problem

when you first install phpmyadmin and it shows the following error

Warning: mb_internal_encoding(): Unknown encoding "big5" in /var/www/html/phpmyadmin/libraries/string.lib.php on line 41Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpmyadmin/libraries/string.lib.php:41) in /var/www/html/phpmyadmin/libraries/common.lib.php on line 2404Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpmyadmin/libraries/string.lib.php:41) in /var/www/html/phpmyadmin/libraries/common.lib.php on line 2404Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpmyadmin/libraries/string.lib.php:41) in /var/www/html/phpmyadmin/libraries/common.lib.php on line 2354Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpmyadmin/libraries/string.lib.php:41) in /var/www/html/phpmyadmin/index.php on line 101

You can edit the /var/www/html/phpmyadmin/libraries/string.lib.php line 41 to comment out that line by

change it from

mb_internal_encoding($GLOBALS['charset']);

to

// mb_internal_encoding($GLOBALS['charset']);

and then you can reload your page again and you can see that .. and then you have to setup your language to any one rather than "Chinese Traditional Big5". I choose UTF8 and then you can del the comment for line 41 and everything will works fine .. remember dont' choose Big5 after you del the comment. If not, you have to do so again.

沒有留言: