Tech NovoGeek

...Technology Simplified

Showing posts with label XML. Show all posts

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);
}