Garbled characters appear when running
吥离吥弃
吥离吥弃 2018-02-23 10:23:36
0
5
1252

Why are the garbled words appearing after running the file?

吥离吥弃
吥离吥弃

reply all(5)
吥离吥弃

Thank you, I will try it myself

吥离吥弃

I just wrote utf encoding

猪哥

php page is utf encoded

header("Content-type: text/html; charset=utf-8");

php page is gbk encoded

header("Content-type: text/html; charset=gb2312");

php page is big5 encoded

header("Content-type: text/html; charset=big5");

Usually the above code is placed on the home page of the php page

The difference between using header or meta to implement PHP page encoding

1. Page encoding

1. 使用 <META http-equiv="content-type" content="text/html; charset=xxx"> 标签设置页面编码


吥离吥弃

How to declare

Sanys

Declare the encoding?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!