From 6006b19ae770cee1474e004f44ffd57b645354ef Mon Sep 17 00:00:00 2001 From: Johnny1984 Date: Thu, 22 Jan 2026 22:04:14 +0100 Subject: HTML5 + this.detectedCharset = tagopts.getProperty("charset"); + this.charsetChanged = true; + } else if (tagopts.containsKey("http-equiv")) { final String value = tagopts.getProperty("http-equiv"); if (value.equalsIgnoreCase("Content-Type")) { // parse lines like @@ -117,10 +121,6 @@ public class ScraperInputStream extends InputStream implements ScraperListener { this.detectedCharset = extractCharsetFromMimetypeHeader(contentType); if (this.detectedCharset != null && this.detectedCharset.length() > 0) { this.charsetChanged = true; - } else if (tagopts.containsKey("charset")) { - // sometimes the charset property is configured as extra attribut. try it ... - this.detectedCharset = tagopts.getProperty("charset"); - this.charsetChanged = true; } } } -- cgit v1.2.3