UTF-8(带BOM):writer = New StreamWriter(FilePathName, True, System.Text.UTF8Encoding.UTF8)
UTF-8(不带BOM):writer =New StreamWriter(FilePathName, True, New UTF8Encoding(False))
生成不带BOM头的UTF-8文件,布布扣,bubuko.com
原文地址:http://blog.csdn.net/wang_cel/article/details/29369871