/src/main/java/org/htmlunit/html/HtmlPage.java
ignoreBom = scriptCharset != ISO_8859_1;
ignoreBom = ISO_8859_1 != scriptCharset;
if (contentCharset == null) { if (scriptCharset != null && ISO_8859_1 != scriptCharset) { ignoreBom = true; scriptEncoding = scriptCharset; } else { <extra_id_0> } } else if (ISO_8859_1 == contentCharset) { ignoreBom = true; } else {