...Technology Simplified

Tuesday, October 16, 2012

Removing bom ‘  ‘ from file c#

No comments :
UTF8Encoding utf8WithoutBom =  new UTF8Encoding(false); 
using (TextWriter writer = new StreamWriter(outputpath,false,utf8WithoutBom))
{
newDoc.Save(writer);
}

No comments :

Post a Comment