You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ha...@apache.org on 2025/01/09 05:06:21 UTC
(tsfile) branch develop updated: Update ReadWriteIOUtils.java (#373)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 0fb1d966 Update ReadWriteIOUtils.java (#373)
0fb1d966 is described below
commit 0fb1d966d96a75f90f8fa2917185ad735193d612
Author: Caideyipi <87...@users.noreply.github.com>
AuthorDate: Thu Jan 9 13:06:17 2025 +0800
Update ReadWriteIOUtils.java (#373)
---
java/tsfile/src/main/java/org/apache/tsfile/utils/ReadWriteIOUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/utils/ReadWriteIOUtils.java b/java/tsfile/src/main/java/org/apache/tsfile/utils/ReadWriteIOUtils.java
index 88f1388d..f5e3e475 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/utils/ReadWriteIOUtils.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/utils/ReadWriteIOUtils.java
@@ -431,7 +431,7 @@ public class ReadWriteIOUtils {
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;