Fixed #2428 Charset setting on FLA export in format MX and below,

Default charset for SWFS v5 and lower is WINDOWS-1252
This commit is contained in:
Jindra Petřík
2025-04-06 18:20:28 +02:00
parent e551fb8dc4
commit c45eb35120
7 changed files with 12 additions and 8 deletions

View File

@@ -1201,7 +1201,7 @@ public class Main {
String shortName = fileTitle != null ? fileTitle : file;
String fileKey = shortName == null ? "" : new File(shortName).getName();
SwfSpecificCustomConfiguration conf = Configuration.getSwfSpecificCustomConfiguration(fileKey);
String charset = conf == null ? Charset.defaultCharset().name() : conf.getCustomData(CustomConfigurationKeys.KEY_CHARSET, Charset.defaultCharset().name());
String charset = conf == null ? Charset.defaultCharset().name() : conf.getCustomData(CustomConfigurationKeys.KEY_CHARSET, "WINDOWS-1252");
List<String> loadedUrls = new ArrayList<>();
List<String> loadedStatus = new ArrayList<>();