diff options
Diffstat (limited to 'src/main/kotlin/FileController.kt')
-rw-r--r-- | src/main/kotlin/FileController.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/FileController.kt b/src/main/kotlin/FileController.kt index d37c552..b1c26dd 100644 --- a/src/main/kotlin/FileController.kt +++ b/src/main/kotlin/FileController.kt @@ -114,7 +114,7 @@ class FileController { val fileLocation = "$fileHome/$userId/$fixedName" var addPath = "" - val stringContent = content.bufferedReader().use { it.readText() } + val stringContent = content.bufferedReader(Charsets.UTF_8).use { it.readText() } fixedName.split("/").forEach { addPath += "$it/" |