Skip to content

Commit

Permalink
Provide text with UTF-8 MIME Type by default
Browse files Browse the repository at this point in the history
This avoids very common text encoding problems.
  • Loading branch information
ArneBab committed Nov 8, 2024
1 parent 523d84b commit e7436a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freenet/client/filter/ContentFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void init() {
register(new FilterMIMEType("text/plain", "txt", new String[0], new String[] { "text", "pot" },
true, true, null, false, false, false, false, false, false,
l10n("textPlainReadAdvice"),
true, "US-ASCII", null, false));
true, "utf-8", null, false));

// GIF - has a filter
register(new FilterMIMEType("image/gif", "gif", new String[0], new String[0],
Expand Down

0 comments on commit e7436a3

Please sign in to comment.