diff --git a/src/nu/validator/htmlparser/io/HtmlInputStreamReader.java b/src/nu/validator/htmlparser/io/HtmlInputStreamReader.java
index 21530e65..e72822ff 100755
--- a/src/nu/validator/htmlparser/io/HtmlInputStreamReader.java
+++ b/src/nu/validator/htmlparser/io/HtmlInputStreamReader.java
@@ -162,7 +162,8 @@ public HtmlInputStreamReader(InputStream inputStream,
} else {
err(Encoding.msgLegacyEncoding(encoding.getCanonName()));
if (driver != null) {
- driver.setEncoding(Encoding.UTF16, Confidence.CERTAIN);
+ // XXX Why did we do driver.setEncoding(encoding.UTF16... ?
+ driver.setEncoding(encoding, Confidence.CERTAIN);
}
}
}