Commit 1ff4f2b9862db040e01704feedea84fcaeb5eb55
1 parent
c566eed3
Exists in
master
and in
1 other branch
Fix regression on decoding unicode char
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/votable/votabledata/BinaryStreamParser.java
... | ... | @@ -302,7 +302,7 @@ public final class BinaryStreamParser implements DataParser { |
302 | 302 | private static Object processUnicodeChar(int nbElement, ByteBuffer byteBuffer) { |
303 | 303 | Object dataBlock; |
304 | 304 | String value = new String(); |
305 | - for (int i = 0; i < nbElement; i += 2) { | |
305 | + for (int i = 0; i < nbElement * 2; i += 2) { | |
306 | 306 | value += byteBuffer.getChar(); |
307 | 307 | } |
308 | 308 | dataBlock = value.trim(); | ... | ... |