marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject [2/3] 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
Date Thu, 13 Mar 2014 14:38:09 GMT
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/MARMOTTA-189
Commit: 42561a732de347932086650496b851fcbc6799e2
Parents: 2b71c07
Author: Jakob Frank <jakob@apache.org>
Authored: Thu Mar 13 15:28:51 2014 +0100
Committer: Jakob Frank <jakob@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) {


Mime
View raw message