首页 > 代码库 > 生成不带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))