You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it's the designed behavior, but i think it's a proper way to handle non-ascii bytes.
Furthermore, why not return all bytes as str(val) directly without trying to return str(val, "ascii") at first? If the caller want to print decoded value, they can decode it explicitly before calling tabulate().
+1
Ran into the same issue, and replacing TypeError with UnicodeDecodeError works in my case too.
Perhaps we should catch both type of errors, though ?
Activity
FurcyPin commentedon Sep 4, 2022
+1
Ran into the same issue, and replacing TypeError with UnicodeDecodeError works in my case too.
Perhaps we should catch both type of errors, though ?
feat: add functions.to_base32 and to_base64
fix astanin#192 - Can't print bytes with non-ascii encoding
fix astanin#192 - Can't print bytes with non-ascii encoding
feat: add functions.to_base32 and to_base64
FurcyPin commentedon Sep 5, 2022
I made a pull request to fix the issue.
feat: add functions.to_base32 and to_base64
Merge pull request #196 from FurcyPin/fpin/#192