Convert to UTF8 without BOM

Here is an encoding detector and UTF8 BOM / UTF8 without BOM converter..



Platform : C# 2010
Operating System : Windows 2000 / XP / 2003 / Vista / win7 (32bit)
Requirements : v4.0 .NET framework
Filesize : 8.5kb



Steven Wittens (aka unconed) declaration :

The UTF-8 BOM was a Microsoft invention. Nobody else uses it, and it breaks tons of things. Two examples off the top of my head: Unix hashbang scripts (i.e. #!/bin/bash), and PHP scripts (the BOM will trigger HTTP header finalization before any code is run).

By: |27/09/2014