Loading UTF-8 encoded dump into MySQL

前端 未结 3 1703
无人及你
无人及你 2021-02-06 04:18

I\'ve been pulling my hear out over this problem for a few hours yesterday:

I\'ve a database on MySQL 4.1.22 server with encoding set to \"UTF-8 Unicode (utf8)\" (as rep

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 05:07

    SOLUTION for me:

    set this option in your php file, after mysql_connect (or after mysql_select_db)..

    mysql_query("SET NAMES 'utf8'");
    

提交回复
热议问题