How to solve ThinkPHP garbled code ?? ---- "$ This-& gt; error (& quot; the image cannot be blank! & Quot;); or $ this-& gt; success (& quot; added successfully & quot ;); when they are executed, the prompt message on the prompt page is garbled. how can this problem be solved ?? & Nbsp; some of my configuration information or other information is like this: --- database font settings: UTF-8; --- Current page ThinkPHP garbled how to solve ??
---- "$ This-> error (" the image cannot be blank! "); Or $ this-> success (" added successfully ");
When they are executed, the prompt message on the prompt page is garbled. how can this problem be solved ??
Some of my configuration information or other information is as follows:
--- Database font settings: UTF-8;
--- Font settings for the current page (Action): UTF-8;
--- Font settings for the current static page (e.g. success.html): UTF-8;
--- In the Convention configuration file: 'Template _ charset' => 'utf-8', // TEMPLATE encoding
'Output _ charset' => 'utf-8', // Default OUTPUT encoding
Why are there garbled characters? I really don't understand !!!
------ Solution --------------------
Check whether the file contains a bom header.
------ Solution --------------------
File encoding ....