From 798d6f3a2ab79bab527e26b6808c973b633f7668 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 13 Sep 2019 16:11:16 +0200 Subject: [DownloadText] Simplify conversion --- src/main/java/org/openslx/taskmanager/tasks/DownloadText.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java index db0b126..3acc647 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java +++ b/src/main/java/org/openslx/taskmanager/tasks/DownloadText.java @@ -62,7 +62,7 @@ public class DownloadText extends AbstractTask return false; } } - status.content = new String( baos.toByteArray(), StandardCharsets.UTF_8 ); + status.content = baos.toString( StandardCharsets.UTF_8.name() ); return true; } catch ( IOException e ) { status.error = "Download error: " + e.toString(); -- cgit v1.2.3-55-g7522