diff --git a/ghidra_scripts/FnidUtils.java b/ghidra_scripts/FnidUtils.java index 991a3f4..f64b095 100644 --- a/ghidra_scripts/FnidUtils.java +++ b/ghidra_scripts/FnidUtils.java @@ -2,6 +2,7 @@ import org.apache.commons.io.FileUtils; import java.io.File; +import java.nio.charset.Charset; import java.util.HashMap; import java.util.List; @@ -37,7 +38,7 @@ private static void loadFnids(GhidraScript script) throws Exception { file = script.askFile("Locate nids.txt", "Load"); } - List list = FileUtils.readLines(file,"ascii"); + List list = FileUtils.readLines(file,Charset.defaultCharset()); for (String s : list) { final String[] split = s.split(" "); fnids.put(split[0], split[1]);