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 ) ); }