]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/HtmlEntry.java
Restore Android 10 API compatibility.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / HtmlEntry.java
index fc15c788b41ef31f23cb9ac631cb8dbc9ad1cc26..7aa43d5340d41d2f8153b8b479957e59a04ffe04 100644 (file)
@@ -267,7 +267,8 @@ public class HtmlEntry extends AbstractEntry implements Comparable<HtmlEntry> {
             buf.readFully(zipBytes);
             try {
                 final byte[] bytes = StringUtil.unzipFully(zipBytes, numBytes);
-                html = new String(bytes, StandardCharsets.UTF_8);
+                // Cannot use StandardCharsets due to older Android.
+                html = new String(bytes, "UTF-8");
             } catch (IOException e) {
                 throw new RuntimeException("Dictionary HTML data corrupted", e);
             }