1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* make sure to read fpcalc output with UTF-8 in case default charset isn't UTF-8 ... I'm looking at you Windows!

This commit is contained in:
Reinhard Pointner 2013-12-31 01:55:07 +00:00
parent 796fec339d
commit 6927a6f7b8

View File

@ -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<Map<String, String>> results = new LinkedList<Map<String, String>>();
try {