From aeb2d4d5bbcea7f97d2dd1d032e86014bb9768bc Mon Sep 17 00:00:00 2001 From: jdotcms Date: Mon, 16 Dec 2024 17:31:04 -0600 Subject: [PATCH] #30694 switching from ISO to UTF-8 --- .../languagevariable/business/LegacyLangVarMigrationHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotCMS/src/main/java/com/dotcms/languagevariable/business/LegacyLangVarMigrationHelper.java b/dotCMS/src/main/java/com/dotcms/languagevariable/business/LegacyLangVarMigrationHelper.java index ccc69261cd43..d80e4d4cd359 100644 --- a/dotCMS/src/main/java/com/dotcms/languagevariable/business/LegacyLangVarMigrationHelper.java +++ b/dotCMS/src/main/java/com/dotcms/languagevariable/business/LegacyLangVarMigrationHelper.java @@ -184,7 +184,7 @@ Optional localeFromTag(final String cmsLanguage) { */ private void migrateFileContents(final Path path, final Language language, final List success, final List fails) throws IOException { Logger.info(this,String.format("-> Migrating variables for language: %s_%s", language.getLanguageCode(), language.getCountryCode())); - final List lines = Try.of(() -> Files.readAllLines(path, StandardCharsets.ISO_8859_1)) + final List lines = Try.of(() -> Files.readAllLines(path, StandardCharsets.UTF_8)) .getOrElseThrow(e -> new IOException(String.format("Could not read file: %s", path), e)); if (lines.isEmpty()) { Logger.warn(this,String.format("File '%s' is empty. Moving on...", path));