Website Test text Display garbled problem
The character of my database is Gb2312_chinese_bin
Fun.php the character set is gb2312
In addition to the Pure PHP code page, each page has been changed to be gb2312
The text of the page code shows no problem,
But in the pure PHP code, the output of the table text will show garbled, how to solve?
------Solution--------------------
Set the header on the PHP page ("content-type:text/html; CHARSET=GBK "); PHP file to save the choice of encoding also choose GBK it
------Solution--------------------
Yes, the program files must also be saved into GBK ... I encountered the problem is to unify everything to UTF8, but many times the code file is not stored utf8, there will be garbled problems
------Solution--------------------
Well. When fetching data. Plus mysql_query ("Set names ' GBK '");
------Solution--------------------
Explore
Reference:
Set the header on the PHP page ("content-type:text/html; CHARSET=GBK "); PHP file to save the choice of encoding also choose GBK it
Header ("content-type:text/html; CHARSET=GBK ");
..? >
Is that so??
------Solution--------------------
PHP Code
------Solution--------------------
Explore
But in the pure PHP code, the output of the table text will show garbled, how to solve?
------Solution--------------------
Explore
Set the header on the PHP page ("content-type:text/html; CHARSET=GBK "); PHP file to save the choice of encoding also choose GBK it