From 05e446c1cf2e29efce98a318e9d808f0adc6f26d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 9 Nov 2007 22:02:56 +0000 Subject: [PATCH] avoid a variable factor. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5807 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index 635213941b..29dbd66cc3 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -337,7 +337,7 @@ public class Util { public static String getDigestOf(String text) { try { - return getDigestOf(new ByteArrayInputStream(text.getBytes())); + return getDigestOf(new ByteArrayInputStream(text.getBytes("UTF-8"))); } catch (IOException e) { throw new Error(e); }