In 2006, I wrote a C# console app (using .net 2.0) which was designed to add some PHP code to a number of HTML files. This was written using C# VS 2005 Express.
This app worked perfectly until sometime during 2007 when some unknown change occured on my Windows XP installation which caused this app to convert hex A0 to hex EF BF BD.
I have since tried all of the Encoding parameters to the StreamWriter class but without resolution. I have also de-installed all my VS 2005 and .NET SDK's and then installed .NET 3.5 and C# VS 2008 also without resolution.
The html files that my app is re-writing are encoded as ISO 8859-1. Incidentally, hex A0 in html is  .
My perusing of the Internet has turned up a note which states that an illegal character will get translated to EF BF BD. The problem is A0 is not an illegal character in ISO 8859-1.
Any ideas on how to prevent this conversion from occuring?