diff --git a/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java b/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java index 96dad7ec642..0ee003c6102 100644 --- a/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java +++ b/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java @@ -136,7 +136,7 @@ public class HttpDownloadHelper { try { if (download(checksumURL, checksumFile, progress, timeout)) { byte[] fileBytes = Files.readAllBytes(originalFile); - List checksumLines = Files.readAllLines(checksumFile); + List checksumLines = Files.readAllLines(checksumFile, Charsets.UTF_8); if (checksumLines.size() != 1) { throw new ElasticsearchCorruptionException("invalid format for checksum file (" + hashFunc.name() + "), expected 1 line, got: " + checksumLines.size());