beebe_3 发表于 2017-3-3 08:13:58

Php Encoding

Mysql using utf8;
so when Rails and Php query records fromtables should set encoding=utf8;
about Rails refer another article;
and the php,first be sure the editor save php file set theencoding utf8;
before query,add mysql_query("set namesutf8")
 
 
页: [1]
查看完整版本: Php Encoding