From b17c14d62ea1234d77fa9642f98b952ab56a15a0 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 24 Aug 2021 17:50:03 +0200 Subject: [PATCH] Theme Editor: use UTF-8 encoding to load properties files --- .../com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java index 12ddd143..d27a80bd 100644 --- a/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java +++ b/flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java @@ -23,7 +23,6 @@ import java.awt.Window; import java.awt.event.ActionEvent; import java.io.File; import java.io.IOException; -import java.nio.charset.StandardCharsets; import javax.swing.Action; import javax.swing.BorderFactory; import javax.swing.InputMap; @@ -186,7 +185,7 @@ class FlatThemeEditorPane void load( File file ) throws IOException { this.file = file; - textArea.load( FileLocation.create( file ), StandardCharsets.ISO_8859_1 ); + textArea.load( FileLocation.create( file ), "UTF-8" ); } boolean reloadIfNecessary() {