I tested the following code with ruby 1.9.2.
"hello".unpack('H*')
=> ["68656c6c6f"]
> "hello".unpack('h*')
=> ["8656c6c6f6"]
Why the result is h*disabled by 1. Also I thought nibble is 4 bits. However 68, 65, 6c, 6cand 6fall take a single byte.
source
share