php output content includes web page display and pop-up information box content.
Garbled codes are generally caused by the difference between the display encoding selected by the browser and the encoding method of the web page. Although website visitors can solve the garbled code problem by manually selecting the encoding, this also greatly reduces the user affinity of the website, and there are not many people. Know how to do it.
Solution: Add header("Content-type: text/html; charset=UTF-8") at the beginning of the php file; UTF-8 is modified according to your web page encoding method.