Skip to content

Commit

Permalink
fix #1664: always use UTF-8 to read RegRipper results
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Jun 27, 2023
1 parent 32af402 commit 07aa65d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import iped.parsers.standard.RawStringParser;
import iped.parsers.standard.StandardParser;
import iped.parsers.util.ItemInfo;
import iped.parsers.util.Util;
import iped.properties.ExtraProperties;
import iped.utils.IOUtil;
import iped.utils.SimpleHTMLEncoder;
Expand Down Expand Up @@ -276,7 +275,7 @@ private String detectHive(File file) throws IOException {
}

private File getHtml(File file, TemporaryResources tmp) throws IOException {
String content = Util.decodeMixedCharset(Files.readAllBytes(file.toPath()));
String content = new String(Files.readAllBytes(file.toPath()), "UTF-8");
if (content == null || content.isBlank()) {
return null;
}
Expand Down

0 comments on commit 07aa65d

Please sign in to comment.