Fixed encoding problem of UTF-8 characters in configuration file
Change-Id: Ia863b9748a0b5edb2a162aa022b6ba43ef433482
diff --git a/plugin/src/main/java/de/ids_mannheim/korap/plkexport/MatchAggregator.java b/plugin/src/main/java/de/ids_mannheim/korap/plkexport/MatchAggregator.java
index 032bd6b..f2898a9 100644
--- a/plugin/src/main/java/de/ids_mannheim/korap/plkexport/MatchAggregator.java
+++ b/plugin/src/main/java/de/ids_mannheim/korap/plkexport/MatchAggregator.java
@@ -461,12 +461,12 @@
catch (Exception e) {
// File problematic
- return Response.status(Status.NOT_FOUND);
+ return Response.status(Status.NOT_FOUND);
};
}
else {
// File doesn't exist
- return Response.status(Status.NOT_FOUND);
+ return Response.status(Status.NOT_FOUND);
};
return rb
diff --git a/plugin/src/main/java/de/ids_mannheim/korap/plkexport/RtfExporter.java b/plugin/src/main/java/de/ids_mannheim/korap/plkexport/RtfExporter.java
index 60b18ba..d827627 100644
--- a/plugin/src/main/java/de/ids_mannheim/korap/plkexport/RtfExporter.java
+++ b/plugin/src/main/java/de/ids_mannheim/korap/plkexport/RtfExporter.java
@@ -55,7 +55,7 @@
@Override
public void writeHeader (Writer w) throws IOException {
- String footnote = Util.convertFromUTF8(prop.getProperty("rtf.footnote"));
+ String footnote = prop.getProperty("rtf.footnote");
w.append("{")
.append("\\rtf1\\ansi\\deff0\n")
diff --git a/plugin/src/main/resources/exportPlugin.conf b/plugin/src/main/resources/exportPlugin.conf
index ba388ea..96d0ddb 100644
--- a/plugin/src/main/resources/exportPlugin.conf
+++ b/plugin/src/main/resources/exportPlugin.conf
@@ -1,3 +1,7 @@
+# Needs to be converted using
+# $ native2ascii -encoding UTF-8 \
+# exportPlugin.conf exportPlugin.conf
+
# Server Configuration
server.port=7777
server.host=localhost
@@ -31,4 +35,4 @@
# RTF configuration #
#####################
-rtf.footnote = @ Leibniz-Institut für Deutsche Sprache, Mannheim
\ No newline at end of file
+rtf.footnote = @ Leibniz-Institut f\u00fcr Deutsche Sprache, Mannheim
\ No newline at end of file
diff --git a/plugin/src/main/resources/locales/export_de.properties b/plugin/src/main/resources/locales/export_de.properties
index 845042f..e70ed27 100644
--- a/plugin/src/main/resources/locales/export_de.properties
+++ b/plugin/src/main/resources/locales/export_de.properties
@@ -1,6 +1,6 @@
# Needs to be converted using
# $ native2ascii -encoding UTF-8 \
-# export_utf8.properties export_de.properties
+# export_de.properties export_de.properties
file_format = Dateiformat
hitc = Einschr\u00e4nken auf die ersten Treffer: