hello,boys
I have a problem,I want to format the string to hex ,just like format
abc to
0x616263 ,but I don’t know how to do it ,
Can you help me,and give me a code?
thx
hello,boys
I have a problem,I want to format the string to hex ,just like format
abc to
0x616263 ,but I don’t know how to do it ,
Can you help me,and give me a code?
thx
Hi,
Am Sonntag, 08. Apr 2007, 21:33:14 +0900 schrieb Rubt Test:
I want to format the string to hex ,just like format
abc to
0x616263 ,but I don’t know how to do it ,
“abc”.unpack “H*”
Bertram
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs