dd-center / txt_to_csv

将弹幕文件从txt转成csv,结果会存在bilibili-vtuber-danmaku-CSV里.
8 stars 1 forks source link

utf8文件头 #1

Open simon300000 opened 5 years ago

simon300000 commented 5 years ago

https://github.com/bilibili-dd-center/bilibili-live-danmaku-recorder/issues/2

似乎有人提出csv utf8乱码的问题,js可以通过加这个解决 https://stackoverflow.com/questions/17879198/adding-utf-8-bom-to-string-blob/27975629#answer-27975629

python我不知道…

wudifeixue commented 5 years ago

目标是解决csv文件用Excel打开后编码不再乱码,我测试增加了UTF-8的BOM之后打开就不再出错了。