Skip to content

Commit

Permalink
Update ReadWriteIOUtils.java (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi authored Jan 9, 2025
1 parent 5811165 commit 0fb1d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static int writeVar(String s, ByteBuffer buffer) {
return ReadWriteForEncodingUtils.writeVarInt(NO_BYTE_TO_READ, buffer);
}
int len = 0;
byte[] bytes = s.getBytes();
byte[] bytes = s.getBytes(TSFileConfig.STRING_CHARSET);
len += ReadWriteForEncodingUtils.writeVarInt(bytes.length, buffer);
buffer.put(bytes);
len += bytes.length;
Expand Down

0 comments on commit 0fb1d96

Please sign in to comment.