Make PHP support mbstring Library

Source: Internet
Author: User
Mbstring library full name is multi-byte string that all languages have their own encoding, their number of bytes is not the same, the current PHP internal encoding only supports ISO-8859-*, EUC-JP, other coding languages for UTF-8 are not available in PHP Program .
The solution is to use the mbstring function library of PHP to solve the problem. When compiling PHP, add -- enable-mbstring =?
"=" Is followed by the language to be supported. j specific parameters are as follows: -- enable-mbstring = cn for simplified Chinese support, -- enable-mbstring = Tw for traditional Chinese support, -- enable-mbstring = Kr for Korean support, -- enable-mbstring = Ru for Russian support, and -- enable-mbstring = JA for Japan support. "No PHP extension settings mbstring were found, and the current system seems to be using the wide character set. No mbstring
The extended phpMyAdmin does not correctly recognize strings and may produce unexpected results ."
This is because we did not add the mbstring module when installing PHP.
In win, it's easy. Just add mbstring to the configuration file. remove the semicolon before the DLL and place the file in the corresponding place. It is different in Linux, but it is also very simple. You only need to add parameters when compiling PHP.
-- With-mbstring -- enable-mbstring = all
You can. The solution was found, but the server was not your own and could not be used. It was specially posted for reference by future friends: "No PHP extension settings mbstring were found, the current system seems to be using the wide character set. PhpMyAdmin without mbstring Extensions cannot correctly identify strings and may produce unexpected results. "solution: Win system: Open C:/Windows/PHP. ini
Set
; Extension = php_mbstring.dll
Change
Extension = php_mbstring.dllunix:
Open/etc/PHP. ini
Set
; Extension = php_mbstring.so
Change
Extension = php_mbstring.so
You may check phpinfo (); To confirm the location of PHP. ini and some features currently supported by PHP. Server Configuration errors and modifications.
PHP configuration: blocks some errors that appear occasionally even though they are formal. Code Change error_reporting = e_all to error_reporting = e_all &~ E_notice
Change display_errors to off

 

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.