This topic created in 4927 days ago, the information mentioned may be changed or developed.
刚刚运行爬虫程序,爬到这个这个 � 字符的时候(感觉是乱码),就卡住了。
求问下,有神马解决方法,可以正常导入到MySQL中...
3 replies • 1970-01-01 08:00:00 +08:00
 |
|
按理来说如果数据格式是blob的话应该能插入的。。text好像就和字符集有关了
|
 |
|
测试使用UTF-8字符集 可以插入
|
 |
|
你这个字符问题,你转成utf8再入库,入库前addslashes,你这个是经典的字节注入的情况。gbk下容易出现
|