致命错误:调用未定义函数mb_detect_encoding()"当试图在IIS 8上运行phpMyAdmin


"Fatal Error: Call to undefined function mb_detect_encoding()" when trying to run phpMyAdmin 4.2.7 on IIS 8 with PHP 5.4.30

我已经安装了PHP 5.4.30,并使用FastCGI模块和IIS 8(在Windows 8.1上)运行良好。我已经安装了MySQL,并想用phpMyAdmin来管理它,但是,每当我尝试访问页面时,我都会得到这个错误:

Fatal error: Call to undefined function mb_detect_encoding() in C:'inetpub'wwwroot'phpmyadmin'libraries'php-gettext'gettext.inc on line 177

我看到的许多老线程建议在php.ini中添加扩展,但是在php的后期版本中,php.ini文件变成了php.ini-productionphp.ini-development。每当我尝试修改这些文件中的任何一个或创建php.ini文件时,在尝试访问其他php页面时都会得到错误500。我也看到了许多与Xampp/Apache相关的解决方案,但它们似乎都不能在IIS 8中工作(我发现)。

提前感谢您的任何建议!

您可能需要安装php_mbstring.dll文件。你可以在PHP Windows Extensions页面

找到它