Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#30694 switching to UTF to see if test runs ok #30951

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Optional <Locale> localeFromTag(final String cmsLanguage) {
*/
private void migrateFileContents(final Path path, final Language language, final List<String> success, final List<String> fails) throws IOException {
Logger.info(this,String.format("-> Migrating variables for language: %s_%s", language.getLanguageCode(), language.getCountryCode()));
final List<String> lines = Try.of(() -> Files.readAllLines(path, StandardCharsets.ISO_8859_1))
final List<String> lines = Try.of(() -> Files.readAllLines(path, StandardCharsets.UTF_8)) // changing from StandardCharsets.ISO_8859_1 to 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));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.dotcms.languagevariable.business;

public class LegacyLangVarMigrationHelperTest {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
something.here=Presentación de Productos
Loading