Lei Rui created IOTDB-4810:
------------------------------

             Summary: print-tsfile-sketch.bat went wrong when reading 
measurementID with Chinese characters
                 Key: IOTDB-4810
                 URL: https://issues.apache.org/jira/browse/IOTDB-4810
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Server
            Reporter: Lei Rui
             Fix For: master branch


`print-tsfile-sketch.bat` went wrong when reading measurementID with Chinese 
characters.

Specifically, it is the following code that does not return correct results:
{code:java}
int measurementIdLength = 
measurementID.getBytes(TSFileConfig.STRING_CHARSET).length; {code}
For example, if measurementID="电机绕组温度1",

the correct measurementIdLength is 20,

while `print-tsfile-sketch.bat` assigns measurementIdLength as 30, which is 
wrong.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to