Charset in php

C

For Example to support Chinese Language web site

<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />

//Inserting & Retrieving data from database
mysql_query (“set character_set_results=’gb2312′”);  or
mysql_set_charset(“gb2312”); or
mysql_query(“SET NAMES gb2312”);

Please follow below link you will get all charset which is use in php.

http://a4esl.org/c/charset.html

About the author

mayur.bhansali
By mayur.bhansali

Category