We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I exported some result to file by '-e print'. I want to read key in file to get redis content. But I found some binary key, example:
binary_key: \x0A\x0E\x08\x8A\xBC\xE2\xCB\x05\x10\x16\x18\x0E(\x058\x02
I try parse binary_key by decode('hex), but happen some error follow info:
TypeError: Odd-length string
How do I solve the problem?
The text was updated successfully, but these errors were encountered:
only the non-printable chars are converted to hex. look at escape_ascii_bytes in rdbtools/encodehelpers.py
so yo can that this sequence can be fed directly to python as a literal. print("\x28 - (") ( - (
Sorry, something went wrong.
I think in python 2 you should use decode('string_escape')
decode('string_escape')
do this: -e base64
No branches or pull requests
I exported some result to file by '-e print'. I want to read key in file to get redis content. But I found some binary key, example:
I try parse binary_key by decode('hex), but happen some error follow info:
How do I solve the problem?
The text was updated successfully, but these errors were encountered: