Force utf8

This commit is contained in:
Andrea Cavalli 2022-07-19 02:11:28 +02:00
parent c2c4765148
commit 1d4736bbc0
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ public class SourcesGenerator {
// Update the hash
Files.writeString(hashPath, basePackageName + '\n' + useRecordBuilders + '\n' + curHash + '\n',
TRUNCATE_EXISTING, WRITE, CREATE);
StandardCharsets.UTF_8, TRUNCATE_EXISTING, WRITE, CREATE);
// Fix the configuration
for (Entry<String, InterfaceDataConfiguration> interfacesDatum : configuration.interfacesData.entrySet()) {
@ -2951,7 +2951,7 @@ public class SourcesGenerator {
}
if (mustWrite) {
logger.debug("File {} changed", outJavaFile);
Files.writeString(outJavaFile, newFile, TRUNCATE_EXISTING, CREATE, WRITE);
Files.writeString(outJavaFile, newFile, StandardCharsets.UTF_8, TRUNCATE_EXISTING, CREATE, WRITE);
} else {
logger.debug("File {} is the same, unchanged", outJavaFile);
}