m118 Posted February 13, 2012 Share Posted February 13, 2012 hello I use the a template called job-site. I can add Chinese character into the database, but I can not display all of the information on the web page. there are a litter bit disordered code on the web page. It is not all of the word is disordered code. I have use the this command . mysql_query("SET NAMES 'utf8'"); I do not know why . Please tell me . Thank you very much. Quote Link to comment Share on other sites More sharing options...
Maq Posted February 13, 2012 Share Posted February 13, 2012 Try setting this meta tag under the head element in your HTML: Quote Link to comment Share on other sites More sharing options...
m118 Posted February 13, 2012 Author Share Posted February 13, 2012 I have put it on the web page . It is still not working. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Quote Link to comment Share on other sites More sharing options...
m118 Posted February 13, 2012 Author Share Posted February 13, 2012 The code likes this . 非 320;莫属 Quote Link to comment Share on other sites More sharing options...
fenway Posted February 13, 2012 Share Posted February 13, 2012 You need to make sure that everything touching the data knows about the correct encoding. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.