Skip to content

Commit f7284b6

Browse files
author
bs
committed
set encoding to utf-8 iso default when writing to filesystem
1 parent f3f0edc commit f7284b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drift-core/drift-core-domain/src/main/java/io/drift/core/store/storage/FileSystemModelStorage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.drift.core.store.storage;
22

33
import java.io.IOException;
4+
import java.nio.charset.Charset;
45
import java.nio.file.Files;
56
import java.nio.file.Path;
67
import java.util.stream.Collectors;
@@ -36,7 +37,7 @@ public void writeContent(StorageId storageId, String model, StoragePath storageP
3637
try {
3738
Path path = getPath(storagePath, storageId, format);
3839
Files.createDirectories(path.getParent());
39-
Files.write(path, model.getBytes());
40+
Files.write(path, model.getBytes(Charset.forName("utf-8")));
4041
} catch (IOException e) {
4142
throw new ModelStorageException(e);
4243
}

0 commit comments

Comments
 (0)