UTF-8 encoding. the layout is affected by BOM headers, and garbled characters are removed! Rt, html/php/mysql are encoded with UTF-8 in a unified manner. If php uses the BOM encoding format, the page layout will be affected. If include exists in php, a blank line will be displayed on the page; if no BOM encoding is available, all Chinese characters will be garbled. If no BOM encoding is available, the header ("Content-type: & n UTF-8 encoding) will affect the layout and garbled characters!
Rt, html/php/mysql are encoded with UTF-8 in a unified manner. If php uses the BOM encoding format, the page layout will be affected. If include exists in php, a blank line will be displayed on the page; if no BOM encoding is available, all Chinese characters will be garbled. If no BOM encoding is available, adding the header ("Content-type: text/html; charset = utf-8") will still affect the layout, it seems that this code is the function of adding the BOM header.
I don't want to add the include field to all files, so code redundancy occurs.
Is there any good solution? Encoding layout garbled UTF-8 php shared:
------ Solution --------------------
Soy sauce ....
------ Solution --------------------
Reference:
Quote: reference:
Soy sauce ....
I have fixed it...
Set
Put it in the first line of each file.
--The garbled text means that the browser cannot identify your encoding format. This should have been added.
------ Solution --------------------
So close the post.