from Hex to string

U

Une bévue

i have datas like that :

646c6532 00000000 61657674 0000012e 00000000 00000000 0000011c 00000004
00000001 00000000 00000000 00000000 [...]
6c6f6e67 00000004 00000000 66726f6d 70736e20 00000008 00000000 005c0001
3b3b3b3b 2d2d2d2d 54455854 00000006 626d6b6d 3a76


seems to be hex encoded US-ASCII (?)

how to convert that in user readable us-ascii ? (to string)

i now i have the sequence "70736e20" which is "psn "
 
M

Mikkel Bruun

String unpack

http://ruby-doc.org/core/classes/String.src/M001436.html
i have datas like that :

646c6532 00000000 61657674 0000012e 00000000 00000000 0000011c 00000004
00000001 00000000 00000000 00000000 [...]
6c6f6e67 00000004 00000000 66726f6d 70736e20 00000008 00000000 005c0001
3b3b3b3b 2d2d2d2d 54455854 00000006 626d6b6d 3a76


seems to be hex encoded US-ASCII (?)

how to convert that in user readable us-ascii ? (to string)

i now i have the sequence "70736e20" which is "psn "


Mikkel Bruun

www.strongside.dk - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk - Buy Old Stuff!(DK)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top