在做爬虫时,爬取的数据导出成 CSV 文件 ,打开出现乱码 ,情况如下
二、如何解决 ? 三、效果图 : 四、说明 :As UTF-8 is an 8-bit encoding no BOM is required and anyU+FEFF character in the decoded Unicode string (even if it’s the firstcharacter) is treated as a ZERO WIDTH NO-BREAK SPACE.
UTF-8以字节为编码单元,它的字节顺序在所有系统中都是一样的,没有字节序的问题,也因此它实际上并不需要BOM(“ByteOrder Mark”)。但是UTF-8 with BOM即utf-8-sig需要提供BOM。
五、参考链接 : https://blog.csdn.net/vernice/article/details/46873169https://blog.csdn.net/weixin_34186706/article/details/73411536