Theme Editor: use UTF-8 encoding to load properties files

This commit is contained in:
Karl Tauber
2021-08-24 17:50:03 +02:00
parent 19dba94064
commit b17c14d62e

View File

@@ -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() {