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.
2 parents 422ef24 + e0b32c2 commit f19e7afCopy full SHA for f19e7af
src/main/java/org/mybatis/scripting/freemarker/FreeMarkerLanguageDriver.java
@@ -22,6 +22,7 @@
22
import java.io.IOException;
23
import java.io.InputStream;
24
import java.io.StringReader;
25
+import java.nio.charset.StandardCharsets;
26
import java.util.Properties;
27
28
import org.apache.ibatis.executor.parameter.ParameterHandler;
@@ -88,7 +89,7 @@ protected freemarker.template.Configuration createFreeMarkerConfiguration() {
88
89
cfg.setNumberFormat("computer");
90
91
// Because it defaults to default system encoding, we should set it always explicitly
- cfg.setDefaultEncoding("utf-8");
92
+ cfg.setDefaultEncoding(StandardCharsets.UTF_8.name());
93
94
return cfg;
95
}
0 commit comments