Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-4810

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

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Lei Rui Lei Rui
              Lei Rui Lei Rui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified