From 6880121c7e08179f11296107ca1f86c6b5f82e7f 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 059e36acd..a8c868b4c 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 ) ); }