diff options
author | Michael Bien <[email protected]> | 2010-08-29 01:01:20 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-08-29 01:01:20 +0200 |
commit | 2ed87beb06ac0b62354829daa675a8e23ce0288b (patch) | |
tree | 020fe81a6d850acaf5d74698a860889353a782a4 | |
parent | d7a6641b23479e4d7f3606b033526c9d3cc19b14 (diff) |
fixed encoding issue of template engine. Default is now UTF8.
-rw-r--r-- | src/main/java/com/jogamp/hungryharry/FeedAggregator.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java index 555f615..eeb52f9 100644 --- a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java +++ b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java @@ -152,6 +152,7 @@ public class FeedAggregator { // Specify how templates will see the data-model. This is an advanced topic... // but just use this: cfg.setObjectWrapper(ObjectWrapper.DEFAULT_WRAPPER); + cfg.setDefaultEncoding("UTF8"); Template template = cfg.getTemplate(templateName); Writer writer = new FileWriter(new File(planet.outputFolder + separator + "planet.html")); |