|
|
|
@@ -11,6 +11,7 @@ import org.yaml.snakeyaml.DumperOptions; |
|
|
|
import org.yaml.snakeyaml.Yaml; |
|
|
|
|
|
|
|
import java.io.*; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
@@ -45,9 +46,7 @@ public class YamlUtils { |
|
|
|
|
|
|
|
String fullPath = path + "/" + fileName + ".yaml"; |
|
|
|
|
|
|
|
try (FileWriter writer = new FileWriter(fullPath)) { |
|
|
|
String dump = yaml.dump(data); |
|
|
|
|
|
|
|
try (FileWriter writer = new FileWriter(fullPath, StandardCharsets.UTF_8)) { |
|
|
|
yaml.dump(data, writer); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
|