Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
format string to hex
Rubt Test
4/8/2007 12:33:00 PM
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
--
Posted via
http://www.ruby-...
.
1 Answer
Bertram Scharpf
4/8/2007 12:52:00 PM
0
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
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
format string to hex
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password