[-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