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:
parent
796fec339d
commit
6927a6f7b8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user