Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2019-02-10 12:01:01 +0000
committerKarsten Thoms2019-02-10 12:48:54 +0000
commit3db8c41531f3660150594a387d12145dab0767a5 (patch)
treeea6bbf18db88ae3fc2b8bb1bd2c7c8f60f101de5 /org.eclipse.text/src/org
parente59d62445cd49073cf39e806ac6eded078115fed (diff)
downloadeclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.gz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.xz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.zip
Bug 518569 - Use StandardCharset constantsI20190210-2135I20190210-1800
Also: version bump for 4.11 Change-Id: I7055e6a2ceb521dbe6065888b735ac62caa73ef6 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.text/src/org')
-rw-r--r--org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java b/org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java
index bb958c036..a0768f829 100644
--- a/org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java
+++ b/org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java
@@ -18,6 +18,7 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
@@ -325,7 +326,7 @@ public class TemplateReaderWriter {
Transformer transformer=TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
- transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
+ transformer.setOutputProperty(OutputKeys.ENCODING, StandardCharsets.UTF_8.name());
DOMSource source = new DOMSource(document);
transformer.transform(source, result);

Back to the top