When chatting in the group today, some friends showed the title of the PHP character set. Many of my friends have come up with this title, if you don't pay attention to it. Of course, there are many types of character sets, and GB2312 is an important application in mainland China,
When chatting in the group today, some friends showed the title of the PHP character set. Many of my friends have come up with this title, if you don't pay attention to it.
Of course, there are many types of character sets. GB2312 is an important application in mainland China, but sometimes we should still consider the title of visiting your website by foreign friends, then you should apply the UTF-8, it is a trend, many domestic websites also use this encoding, so that it is not easy because of regional differences, garbled characters are caused by visiting webpages.
Header (\ "content-type: text/html; charset = gb2312 \"); this is the header file output in php. Of course, you can change the GB2312 to the encoding you need.
If it is the title in html, it is important In the head.
In general, if you use Dreamweaver or some other compilers, you can actively adjust the settings.
PS: I usually use UTF-8 now. If UTF-8 is used to contain data, no rendering error occurs.