Mb_detect_encoding () run sitemap.php character encoding cannot convert modify PHP.ini

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.