php - Same charset html and sql but errors -


in example i'm working html, php , sql. there sql table field "utf8_unicode_ci". want put field wich contains html code , italian text, chinese or russian html page displayed browsers.

into html page there this:

<meta charset="utf-8"> 

the problem text displayed strange charachters, can me please?

do set utf-8 on mysql connection? after connecting, execute query: set names 'utf8'


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -