handle iso-8859-2 (#138)

This commit is contained in:
Athou
2013-05-19 21:50:38 +02:00
parent 666547d287
commit b2ee06d94a

View File

@@ -23,7 +23,8 @@ public class FeedUtils {
detector.reset(); detector.reset();
if (encoding == null) { if (encoding == null) {
encoding = DEFAULT_ENCODING; encoding = DEFAULT_ENCODING;
} else if (encoding.equalsIgnoreCase("ISO-8859-1")) { } else if (encoding.equalsIgnoreCase("ISO-8859-1")
|| encoding.equalsIgnoreCase("ISO-8859-2")) {
encoding = "windows-1252"; encoding = "windows-1252";
} }
return encoding; return encoding;