Some time ago to use interface to a service, because the parameters used when inside a Chinese call interface, the interface will invoke unexpected problem arose later came to understand is inconsistent coding problem. However, I use the local project development is utf-8, there is also a need for an interface utf-8, then the question is, in the end where inconsistent coding it?
Ask the experts what turned out to be php mbstring extension is not turned on, the following is to open mbstring extension and configuration support utf-8 encoding:
First, remove the ;extension=php_mbstring.dll
front of the " ;
" number, open mbstring extension;
Then, the corresponding item have changed the following values:
mbstring.language = Chinese
mbstring.internal_encoding = UTF-8
mbstring.encoding_translation = On mbstring.http_input = UTF-8 mbstring.http_output = UTF-8 mbstring.detect_order = UTF-8 mbstring.substitute_character = none
Finally, restart under php to OK!