Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python解码UCS-2十六进制短信字符串
将UCS-2编码的十六进制字符串(通常来自短信PDU或AT指令)转换为可读的中文字符串。
Passed 17 of 22 test cases with the skill, and 11 of 22 without it.
and 3 more in the full report
6 fixed11 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
I extracted `60A86760` from a 4G LTE modem PDU text field. Write Python code to translate this UCS-2 hex string back to Chinese characters.
| Checked | Without skill | With skill |
|---|---|---|
| The code produces or uses utf-16-le decoding logic on the parsed hex bytes. | Missed | Passed |
The instructions your model reads when the skill loads.
将UCS-2编码的十六进制字符串(通常来自短信PDU或AT指令)转换为可读的中文字符串。
扮演Python编码专家。你的任务是将用户提供的UCS-2编码的十六进制字符串解码为可读的中文字符串。
bytes.fromhex() 将十六进制字符串转换为字节数组。utf-16-le (Little Endian) 对字节数组进行解码。latin-1,再解码为 gbk(或其他常见中文编码如 utf-8),以解决字符集映射问题。UnicodeEncodeError,确保代码健壮性。utf-16 解码而不考虑字节序(endianness)。test cases passed, vs 11 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.