php display Chinese garbled database connection

I'm really not going to cry 

A start like this

 

 

 

then

Database collation change to change

Code plus the add delete delete

I was engaged in a variety of my.ini

 

 

 

 

 No fart

Today I see this person's answer and some hope

 

 

 

I tried to open the above process encountered various difficulties. .

 

 

 

 

 

 

 Well, I finally managed to see this. .

 

 

 

Really wrong, so I changed it to look like this

 

 

But when I saw again this time

Almost did not mad

 

 

 

After a while

I found a magical phenomenon

I can use the page utf8 ah

 

 Okay, maybe here utf equivalent to the other end of gbk

So I would change the whole character set gbk database

 

Then delete this line of code

 

 No hope of this place

 

 FML actually it. .

 

 

 

I like wit. .

Guess you like

Origin www.cnblogs.com/lllxq/p/12154351.html
Recommended