Enable PHP to support the Mbstring library

Source: Internet
Author: User
Tags phpmyadmin

Mbstring Library full name is Multi-Byte String that all languages have their own code, their number of bytes is not the same, currently PHP internal code only support iso-8859-*, EUC-JP, UTF-8
Other coded languages are not displayed correctly on PHP programs.
The solution is to use PHP's mbstring function library to solve
The installation is to add--enable-mbstring= when compiling PHP?
"=" is followed by a language that needs support, J specific parameters are as follows:--ENABLE-MBSTRING=CN for Simplified Chinese supports,--ENABLE-MBSTRING=TW for traditional Chinese support,--ENABLE-MBSTRING=KR for Korean support,--enable-mbstring=ru for Russian support, and--enable-mbstring =ja for Japanese support.
"There is no PHP extension set mbstring, and the current system seems to be using a wide character set. No mbstring.
Extended phpMyAdmin do not correctly identify strings and can produce unexpected results. "
This is because we did not add the Mbstring module when we loaded PHP.
In the win is very simple, as long as the Mbstring.dll in the configuration file in front of the semicolon removed, and put the file in the appropriate place, it is different under Linux, but also very simple. Just add the parameters when compiling PHP
--with-mbstring--enable-mbstring=all
You can do it.

I'm using the ubuntu11.04 hint with the parameter is incorrect, so remove the with, you can


Found a solution, but unfortunately the server is not their own, can not be used, specifically posted out for the future needs of friends reference:
There is "no PHP extension set mbstring found, and the current system seems to be using a wide character set." A phpMyAdmin that does not have a mbstring extension does not correctly recognize the string and can produce unexpected results. "
Workaround:
Win System:
Open C:/windows/php.ini
Put
; Extension=php_mbstring.dll
Change into
Extension=php_mbstring.dll
Unix:
Open/etc/php.ini
Put
; extension=php_mbstring.so
Change into
Extension=php_mbstring.so
It is possible to verify the location of the php.ini and some of the features currently supported by PHP by looking at Phpinfo ().
Errors that may occur with the server configuration, as well as modifications.
PHP Configuration: Block some though formal but there will be occasional sudden error display code error_reporting = e_all to error_reporting = E_all & ~e_notice
Modify the Display_errors value to OFF

Enable PHP to support the Mbstring library

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.