通过py2neo
将csv
文件导入至Neo4j
中,出现UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 0: invalid star
这个错误。
原因是:未将csv
文件以UTF-8
格式保存。
解决方法:用记事本
格式打开csv
文件,并以保存类型为所有格式
、编码为UTF-8
另存并对原先的文件进行替换。
再次运行代码,不会报错。
通过py2neo
将csv
文件导入至Neo4j
中,出现UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 0: invalid star
这个错误。
原因是:未将csv
文件以UTF-8
格式保存。
解决方法:用记事本
格式打开csv
文件,并以保存类型为所有格式
、编码为UTF-8
另存并对原先的文件进行替换。
再次运行代码,不会报错。