Test:

<!DOCTYPE HTML>
<!-- Starts with UTF-8 BOM -->

Expected result: UTF-8

Encoding used by browser is: Script did not run.

Result: Script did not run.