小编ต้อ*_*มัย的帖子

我有十六进制转储中的数据,但不知道编码.例如.0x91 0x05 = 657

我在hexdump代码中有一些数据.左手是DEC,右手是hexdump代码.

16 = 10
51 = 33
164 = A4 01
388 = 84 03
570 = BA 04
657 = 91 05
1025 = 81 08
246172 = 9C 83 0F
Run Code Online (Sandbox Code Playgroud)

如何计算到DEC的任何hexdump?在perl中,我尝试使用ord()命令但不起作用.

更新 我不知道它叫什么.它看起来像7bits数据.我尝试在excel中构建公式,如下所示:

DEC = hex2dec(X) + (128^1 * hex2dec(Y-1)) + (128^2 * hex2dec(Z-1)) + ...
Run Code Online (Sandbox Code Playgroud)

perl encoding hexdump decode character-encoding

0
推荐指数
1
解决办法
87
查看次数

标签 统计

character-encoding ×1

decode ×1

encoding ×1

hexdump ×1

perl ×1