The interface of a service was used a while ago, because there is Chinese in the parameters of the calling interface, the calling interface will have an abnormal problem, and then the problem of encoding inconsistency is understood. However, my local project development uses the UTF-8, the interface also needs to utf-8, then the question comes, exactly where the coding is inconsistent?
Ask a master, the original is PHP extension mbstring not open, the following is to open the mbstring extension, and configure Support Utf-8 encoding method:
First, remove the ;extension=php_mbstring.dll
front " ;
" number, open the mbstring extension;
Then, change the corresponding item to the following value:
mbstring.language = Chinesembstring.internal_encoding = UTF-8mbstring.encoding_translation = Onmbstring.http_input = UTF-8mbstring.http_output = UTF-8mbstring.detect_order = UTF-8mbstring.substitute_character = none
Finally, restart the next PHP is OK!
PHP open mbstring Extension and set support UTF-8 encoding