mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
Fixed: Configuration TOML file encoding (UTF-8)
This commit is contained in:
@@ -52,6 +52,7 @@ All notable changes to this project will be documented in this file.
|
||||
- ABC cleaner not properly fixing namespace sets
|
||||
- The hex view does not display bytes if there are too few of them
|
||||
- SymbolClass export/import did not support obfuscated names
|
||||
- Configuration TOML file encoding (UTF-8)
|
||||
|
||||
### Changed
|
||||
- Icon of "Deobfuscation options" menu from pile of pills to medkit
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.AppResources;
|
||||
import com.jpexs.decompiler.flash.ApplicationInfo;
|
||||
import com.jpexs.decompiler.flash.types.RGB;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import com.jpexs.helpers.utf8.Utf8Helper;
|
||||
import java.awt.Color;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
@@ -278,7 +279,7 @@ public class TomlConfigurationStorage implements ConfigurationStorage {
|
||||
modifiedOnly = true;
|
||||
}
|
||||
try (
|
||||
Writer w = new FileWriter(file); PrintWriter pw = new PrintWriter(w)) {
|
||||
Writer w = new FileWriter(file, Utf8Helper.charset); PrintWriter pw = new PrintWriter(w)) {
|
||||
String header = AppResources.translate("configurationFile").replace("%app%", ApplicationInfo.APPLICATION_NAME);
|
||||
String splitter = stringOfChar('-', header.length());
|
||||
pw.println("# " + splitter);
|
||||
|
||||
Reference in New Issue
Block a user