]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTable.java
Use default charset for tech type CSV parsing
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / techtype / table / TechTypeTable.java
index eb83c902ddf535c9bcd8ae236de40913d33bf4a6..3b3d4a7014f13cbdc924ef46368f3111db828dfa 100644 (file)
@@ -196,7 +196,7 @@ public class TechTypeTable extends Composite {
        public void setTechTypePath(String path) {
                String data;
                try {
-                       data = Files.lines(Paths.get(path)).collect(Collectors.joining("\n"));
+                       data = Files.lines(Paths.get(path), Charset.defaultCharset()).collect(Collectors.joining("\n"));
                } catch (IOException e) {
                        LOGGER.error("Failed to read contents of file '{}' as {}", path, Charset.defaultCharset(), e);
                        return;