From 4076342660f63f41bd5d25479c8e8588bbaaf3ae Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sun, 18 Apr 2010 22:51:21 +0200 Subject: Force encoding on unparsing. --- org/madore/damlengine/DamlEngine.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org/madore/damlengine') diff --git a/org/madore/damlengine/DamlEngine.java b/org/madore/damlengine/DamlEngine.java index 63f1442..36dd3c4 100644 --- a/org/madore/damlengine/DamlEngine.java +++ b/org/madore/damlengine/DamlEngine.java @@ -47,7 +47,8 @@ public final class DamlEngine { processDocument(doc); doc.normalizeDocument(); Unparser unparser - = new Unparser(doc, new OutputStreamWriter(System.out)); + = new Unparser(doc, new OutputStreamWriter(System.out, + "UTF-8")); unparser.unparse(); } -- cgit v1.2.3