You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/03/18 09:19:16 UTC
[2/6] git commit: MARMOTTA-189: set default encoding in templating to
enable url-encoding see
http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_url
MARMOTTA-189: set default encoding in templating to enable url-encoding
see http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_url
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/42561a73
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/42561a73
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/42561a73
Branch: refs/heads/develop
Commit: 42561a732de347932086650496b851fcbc6799e2
Parents: 2b71c07
Author: Jakob Frank <ja...@apache.org>
Authored: Thu Mar 13 15:28:51 2014 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Thu Mar 13 15:35:17 2014 +0100
----------------------------------------------------------------------
.../platform/core/services/templating/TemplatingServiceImpl.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/42561a73/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
index 02a5ff7..231326f 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
@@ -124,6 +124,8 @@ public class TemplatingServiceImpl implements TemplatingService {
@Override
public Configuration getConfiguration(Class<?> cls) {
Configuration cfg = new Configuration();
+ cfg.setDefaultEncoding("utf-8");
+ cfg.setURLEscapingCharset("utf-8");
try {
cfg.setDirectoryForTemplateLoading(templateDir);
} catch (IOException e) {