can i change the default encoding of my mysql server on my computer from latin-1 to utf-8 ?
views:
64answers:
2
+2
A:
sure you can. you can use your mysql gui software or run following quries:
// utf8 charset for multi-lingual support
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET character_set_results=utf8");
mb_language("uni");
mb_internal_encoding("UTF-8");
Sarfraz
2009-12-02 14:23:08