{
  "topic": "BACnet CharacterString",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "UTF8中文",
      "kind": "正例",
      "input": {
        "payload_hex": "00 E5 89 8D E5 8E 85"
      },
      "expected": {
        "encoding": 0,
        "supported": true,
        "text": "前厅",
        "text_bytes": 6
      }
    },
    {
      "case_id": "ASCII",
      "kind": "正例",
      "input": {
        "payload_hex": "00 41 48 55 2D 31"
      },
      "expected": {
        "encoding": 0,
        "supported": true,
        "text": "AHU-1",
        "text_bytes": 5
      }
    },
    {
      "case_id": "未支持字符集",
      "kind": "正例",
      "input": {
        "payload_hex": "05 C4 E3"
      },
      "expected": {
        "encoding": 5,
        "supported": false,
        "raw_hex": "c4e3"
      }
    },
    {
      "case_id": "UTF8非法序列",
      "kind": "显式负例",
      "input": {
        "payload_hex": "00 C3 28"
      },
      "expected_error": "UTF8内容非法"
    }
  ]
}
