}
if (bAutoDetectEncoding) {
if (DebugFile.trace) DebugFile.writeln("Autodetecting encoding");
ByteArrayInputStream oHtmlStrm = new ByteArrayInputStream(sHtml.getBytes("ASCII"));
sEncoding = new CharacterSetDetector().detect(oHtmlStrm,"ASCII");
oHtmlStrm.close();
if (DebugFile.trace) DebugFile.writeln("Encoding set to "+sEncoding);
}
Pattern oPattern = oCompiler.compile("<base(\\x20)+href=(\"|')?([^'\"\\r\\n]+)(\"|')?(\\x20)*/?>", Perl5Compiler.CASE_INSENSITIVE_MASK);