the encoding in these two line should be shift-jis
|
self.__name = name.split(b"\x00")[0].decode("ascii") |
|
name = self.__name.encode("ascii") |
example:
$ cat 22024.2dx| xxd | head -n 5
00000000: 3232 3032 345f 97f6 82cd 9492 91d1 5f62 22024_........_b
00000010: dc0c 0000 2503 0000 ffff ffff 0000 0000 ....%...........
00000020: 0000 0000 00b2 3502 fcf4 1800 0500 0000 ......5.........
00000030: ffff ffff ac54 6577 0000 0000 0000 0000 .....Tew........
00000040: 0000 0000 c054 6577 dc0c 0000 4e2f 5800 .....Tew....N/X.
The filename cannot be decoded/encoded by ascii but can be decoded by shiftjis as 22024_恋は白帯
the encoding in these two line should be shift-jis
bemaniutils/bemani/format/twodx.py
Line 19 in 5a83329
bemaniutils/bemani/format/twodx.py
Line 86 in 5a83329
example:
The filename cannot be decoded/encoded by ascii but can be decoded by shiftjis as
22024_恋は白帯