-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
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
UnicodeDecodeError
when trying to extract UEFI
#117
Comments
Thanks @jstucke, this is a great find. If you have time to submit a pull request then I am happy to review and we'll get it merged. |
Sure, I can submit a pull request. What do you think would be the best solution? Ignoring the characters that cannot be decoded or replacing them? Using the hex value could also be a good alternative. I would prefer the latter, because then no data would get lost during decoding. example output for offending file that caused the error:
|
I agree, I wonder if an indicator like |
I opened a PR but I'm a bit puzzled regarding Python version compatibility. Is Python 2.7 still supported? |
I was leaving it in, in so much that it wasn't a pain to support. So it's safe to say no. |
I'm getting an
UnicodeDecodeError
when trying to extract files from a Dell UEFI file with--superbrute
:fix: either handle the error or use
name.decode("utf-8", errors="replace")
orname.decode("utf-8", errors="ignore")
.Some of the resulting files look kinda garbled, though (e.g.
pfsobject/section-558297e8-2efe-4faa-ba83-5465d6de3099/partitions/FTPR/�|E�+,]��u���O.module
) but most are fine (so unpacking the file seems to work in general). Could it be a different underlying problem with encodings or offsets?e.g. happens for Dell Latitude 3160 UEFI contained in 3160A08.exe from the dell support site
The text was updated successfully, but these errors were encountered: