From 6927a6f7b8908ad3f034e4d5bbcc6afa478d0190 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 31 Dec 2013 01:55:07 +0000 Subject: [PATCH] * make sure to read fpcalc output with UTF-8 in case default charset isn't UTF-8 ... I'm looking at you Windows! --- source/net/sourceforge/filebot/web/AcoustID.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/web/AcoustID.java b/source/net/sourceforge/filebot/web/AcoustID.java index e1e61965..70ccfd08 100644 --- a/source/net/sourceforge/filebot/web/AcoustID.java +++ b/source/net/sourceforge/filebot/web/AcoustID.java @@ -6,6 +6,7 @@ import static net.sourceforge.tuned.FileUtilities.*; import java.io.File; import java.io.IOException; +import java.io.InputStreamReader; import java.lang.ProcessBuilder.Redirect; import java.net.URL; import java.util.ArrayList; @@ -177,7 +178,7 @@ public class AcoustID implements MusicIdentificationService { throw new IOException("Failed to exec fpcalc: " + e.getMessage()); } - Scanner scanner = new Scanner(process.getInputStream()); + Scanner scanner = new Scanner(new InputStreamReader(process.getInputStream(), "UTF-8")); LinkedList> results = new LinkedList>(); try {