Change the encoding format of the editor to UTF-8 by default (tool-& gt; preference [parameter selection]-& gt; file-& gt; encoding UTF-8)
(1) when saving the file (the file is UTF-8 encoded)
(2) change the encoding format of the editor to UTF-8 by default (tool-> preference [parameter selection]-> File-> encoding UTF-8)
(3) header ("content-type: text/html; charset = utf-8 ")
Or in html:
(4) write the database to set the character set mysql_query ("set names utf8 ")
(5) when creating databases and tables, encoding should be unified into UTF-8 (1) when the file is saved (the file itself is encoded as UTF-8)
(2) change the encoding format of the editor to UTF-8 by default (tool-> preference [parameter selection]-> File-> encoding UTF-8)
(3) header ("content-type: text/html; charset = utf-8 ")
Or in html:
(4) write the database to set the character set mysql_query ("set names utf8 ")
(5) data must be encoded in UTF-8 format when a database and table are created.