[-AI-] FileOpen强制 UTF-8 with BOM

楼主: GodIsland (搞不定吗用C4就对了)   2022-04-03 22:31:13
How to create a new UTF8 file without BOM, and write to it - AutoIt General
Help and Support - AutoIt Forums
https://www.autoitscript.com/forum/topic/176882-how-to-create-a-new-utf8-file-without-bom-and-write-to-it/
参考官方论坛文章
FileOpen($sPath&"Test.csv", 128+2)
除指定编码外,还再加入+2强制写入,档案才会正常
否则会出现FileOpen产生的csv档,以Notepad开启中文正常,
而使用Excel开启中文是乱码的情形。
Excel 打开 csv 文件出现中文乱码的解决方法(Notepad 打开正常)_NLP_victor 的博
客 - CSDN 博客_excel 用 notepad 打开是乱码
https://blog.csdn.net/IOT_victor/article/details/114138938

Links booklink

Contact Us: admin [ a t ] ucptt.com