aps.net : BIG BUG in streamwriter

Tech-Archive recommends: Fix windows errors by optimizing your registry




we are in 2009 and nobody has seen this bug before me?

StreamWriter sw = new StreamWriter(Server.MapPath("./")+"test.xml", false, Encoding.UTF8);
sw.Write("a text");
sw.Close();


it writes a file in UTF-16 and not UTF-8! too funny!

EL
.