From 3398350f0edf9c7978cfe08dffeb3b64d66c39eb Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Thu, 12 Sep 2002 01:49:40 +0000 Subject: [PATCH] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12410 PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352843 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/util/StringUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/util/StringUtil.java b/src/java/org/apache/poi/util/StringUtil.java index 059e36acd8..a8c868b4c9 100644 --- a/src/java/org/apache/poi/util/StringUtil.java +++ b/src/java/org/apache/poi/util/StringUtil.java @@ -114,7 +114,7 @@ public class StringUtil { char[] chars = new char[ len ]; for ( int i = 0; i < chars.length; i++ ) { - chars[i] = (char)( string[ offset + ( 2*i ) ] + + chars[i] = (char)( string[ offset + ( 2*i ) ] & 0xFF | ( string[ offset + ( 2*i+1 ) ] << 8 ) ); } -- 2.39.5