Like what:
header("Content-Type:text/html;charset=utf-8"); $a='adminn流hn–h'; echo $a;
Results: Adminn Flow hn–h
Correct
If, ' Adminn stream hn–h ' exists in the field of MySQL with the properties of utf8_general_ci, the result of ECHO is:
Adminn?hn h
Ask
Reply content:
Like what:
header("Content-Type:text/html;charset=utf-8"); $a='adminn流hn–h'; echo $a;
Results: Adminn Flow hn–h
Correct
If, ' Adminn stream hn–h ' exists in the field of MySQL with the properties of utf8_general_ci, the result of ECHO is:
Adminn?hn h
Ask
Is the problem of character encoding, the header is added UTF8 on the line. You can first look at the output garbled page encoding is what, if not utf8 on the header if it is, then look at your PHP file is what encoding. and make it into a utf8.
The file code should be kept consistent with the header.
If you exclude the other most likely, the last reason is the browser, another one is normal
Adjust the code of the browser
Use notepad++ to see what the file encoding is? Be sure to keep the code in line with the header.
That's right upstairs.
File encoding problem, look at the specific code on the line