用vertrigoserv的php将一个csv文件导入localhost/phpmyadmin.index的时候为什么中文会出现乱码?
如何才能导入中文进去呢?求图、求网址!最好是有截图的~

解决方案 »

  1.   

    编码问题,你先确认你的表和mysql表的编码是不是一致的。
      

  2.   

       First, select the attributions whose elements have Chinese charaters.    Second, set the character format of the selected attributions to BLOB, and set the classification column to gb2312_chinese_ci.    Third, import the csv file, and you can see the contents in the column are [BLOB - XXX bytes].    Forth, change the character format to TEXT, and set the classification column to gb2312_chinese_ci.在昨晚试到三点后终于试出来了……