Skip to content
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

Hexdump , to dump better output for non ascii data. #146

Merged
merged 1 commit into from Nov 13, 2017
Merged

Conversation

chhil
Copy link
Contributor

@chhil chhil commented Nov 13, 2017

At times when dealing with non ASCII, like EBCDIC, the hex dump only shows hex character and all the data as "." fr non printablThis one takes in a charset and prints good printable data. Helpful when you are dealing with EBCDIC message formats from the likes of Amex and Mastercard.

e.g. of a dump

000000:  F1 F1 F2 F0 78 34 07 42 46 40 C0 14 F9 F1 F2 F3   |  1120Ì?�âã {?9123
000016:  F4 F5 F6 F7 F8 F9 F3 F9 F4 F8 F0 F0 F0 F0 F0 F0   |  4567893948000000
000032:  F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0   |  0000000000000000
000048:  F0 F0 F0 F0 F0 F0 F0 F0 F1 F8 F1 F7 F1 F1 F0 F8   |  0000000018171108
000064:  F1 F0 F5 F5 F5 F3 F0 F3 F1 F2 F0 F0 F0 E2 F4 F1   |  1055530312000S41
000080:  F6 F0 F0 F0 F0 F1 F0 F0 F1 F1 F0 F0 F5 F6 F9 F7   |  6000010011005697

@ar ar merged commit ca08dfb into jpos:master Nov 13, 2017
@chhil chhil deleted the patch-6 branch November 13, 2017 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants