diff options
-rw-r--r-- | src/Generation/FileGenerator.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt index df6bbd79..6419d06d 100644 --- a/src/Generation/FileGenerator.kt +++ b/src/Generation/FileGenerator.kt @@ -15,7 +15,7 @@ public class FileGenerator(val signatureGenerator: LanguageService, val file = location.file.appendExtension(formatService.extension) file.getParentFile()?.mkdirs() FileOutputStream(file).use { - OutputStreamWriter(it, defaultCharset).use { + OutputStreamWriter(it, Charsets.UTF_8).use { it.write(formatService.format(items)) } } @@ -28,7 +28,7 @@ public class FileGenerator(val signatureGenerator: LanguageService, val file = location.file.appendExtension("yml") // TODO: hardcoded file.getParentFile()?.mkdirs() FileOutputStream(file).use { - OutputStreamWriter(it, defaultCharset).use { + OutputStreamWriter(it, Charsets.UTF_8).use { it.write(formatService.formatOutline(items)) } } |