Currently , .pp files lost BOM when installed in a Visual Studio project.
Usually, the files operated in Visual Studio are utf-8 with BOM.
Comments: Sorry , Correct url of UTF8Encoding.GetPreamble Method is here : http://msdn.microsoft.com/en-us/library/system.text.utf8encoding.getpreamble(v=vs.100).aspx
Usually, the files operated in Visual Studio are utf-8 with BOM.
Comments: Sorry , Correct url of UTF8Encoding.GetPreamble Method is here : http://msdn.microsoft.com/en-us/library/system.text.utf8encoding.getpreamble(v=vs.100).aspx