From 2ed87beb06ac0b62354829daa675a8e23ce0288b Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 29 Aug 2010 01:01:20 +0200 Subject: fixed encoding issue of template engine. Default is now UTF8. --- src/main/java/com/jogamp/hungryharry/FeedAggregator.java | 1 + 1 file changed, 1 insertion(+) 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")); -- cgit v1.2.3