1. 程式人生 > >生成不帶BOM頭的UTF-8檔案

生成不帶BOM頭的UTF-8檔案

UTF-8(帶BOM):writer = New StreamWriter(FilePathName, True, System.Text.UTF8Encoding.UTF8)

UTF-8(不帶BOM):writer =New StreamWriter(FilePathName, True, New UTF8Encoding(False))