Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
`print-tsfile-sketch.bat` went wrong when reading measurementID with Chinese characters.
Specifically, it is the following code that does not return correct results:
int measurementIdLength = measurementID.getBytes(TSFileConfig.STRING_CHARSET).length;
For example, if measurementID="电机绕组温度1",
the correct measurementIdLength is 20,
while `print-tsfile-sketch.bat` assigns measurementIdLength as 30, which is wrong.
Attachments
Issue Links
- links to