We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0023390 commit 81c40efCopy full SHA for 81c40ef
src/nu/validator/htmlparser/io/MetaSniffer.java
@@ -165,6 +165,10 @@ protected boolean tryCharset(String encoding) throws SAXException {
165
this.characterEncoding = Encoding.UTF8;
166
err(Encoding.msgIgnoredCharset(encoding, "utf-8"));
167
return true;
168
+ } else if ("x-user-defined".equals(encoding)) {
169
+ this.characterEncoding = Encoding.WINDOWS1252;
170
+ err(Encoding.msgIgnoredCharset("x-user-defined", "windows-1252"));
171
+ return true;
172
} else {
173
Encoding cs = Encoding.forName(encoding);
174
String canonName = cs.getCanonName();
0 commit comments