1.phpinfo () find php.ini location
2. Back up and then add Extension=php_mbstring.dll to the top of the php.ini file
Call to undefined function mb_detect_encoding () errorCategory: PHP WordPress 2014-08-08 20:51 1122 People read reviews (0) favorite reports
One, Fatal error:call to undefined Function:iconv () in C:\Program files\appserv\www\...\xxx.php on line 82
PHP has a iconv () function for character encoding conversions.
Also exists in the php.ini file Extension=php_iconv.dll
Such a declaration will ensure that this function is used properly
If there is a semicolon in front of Extension=php_iconv.dll in the php.ini file
The indication is commented out, if there is a semicolon to remove, and restart the server
Run the program again to resolve
================================================================================================
II, Fatal error:call to undefined function:mb_detect_encoding () in C:\Program files\appserv\www\...\xxx.php on line 1355
1. Find the PHP extension directory (the path to my PHP extension directory is: C:\Program files\appserv\php\extensions)
Locate the Php_mbstring.dll file under the extensions directory,
2. Copy the Php_mbstring.dll file to the directory where the php.ini file is located (the directory where my php.ini file is located: C:\WINDOWS)
3. Open the php.ini file with Notepad, use the shortcut key ctrl+f find Extension=php_mbstring.dll
4, if there is extension=php_mbstring.dll in the php.ini file, remove the semicolon in front of the line extension,
If it doesn't exist, it's in the other extension= ... The next line to join Extension=php_mbstring.dll,
Finally remember to save the php.ini file
5. Restart your Apache server
Just found not copy php_mbstring.dll this file to php.ini directory also line
Mb_detect_encoding () run sitemap.php character encoding cannot convert modify PHP.ini