Skip to content

Commit

Permalink
Don't require output.html.charset, use UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraZizka committed Oct 30, 2018
1 parent 7fe542f commit cea65b4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ public Charset getOutputHtmlCharset()
return Charset.forName(charsetStr);
}
catch (Exception ex) {
throw new JBakeException("Unknown character set: " + charsetStr + " Try " + StandardCharsets.UTF_8.name());
//throw new JBakeException("Unknown character set: " + charsetStr + " Try " + StandardCharsets.UTF_8.name());
return StandardCharsets.UTF_8;
}
}

Expand All @@ -537,7 +538,8 @@ public Charset getInputCharset()
return Charset.forName(charsetStr);
}
catch (Exception ex) {
throw new JBakeException("Unknown character set: " + charsetStr + " Try " + StandardCharsets.UTF_8.name());
//throw new JBakeException("Unknown character set: " + charsetStr + " Try " + StandardCharsets.UTF_8.name());
return StandardCharsets.UTF_8;
}
}

Expand Down

0 comments on commit cea65b4

Please sign in to comment.