constructing a string from hex value

Discussion in 'Ruby' started by Srdjan Marinovic, Sep 6, 2006.

  1. hi,

    How do I construct a string out of hex values?
    In other words I want to give exact hex value for each byte in the
    string. So I would have soemthing like

    0x2a, 0x7e, 0x0a, 0x7e

    If I go through Fixnum I get my string to contain numbers 48, 115, 10,
    115 but I do not want that but rather a string of ASCII(48),
    ACII(115),...

    Thanks

    srdjan
    Srdjan Marinovic, Sep 6, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    10
    Views:
    6,181
    Neredbojias
    Aug 19, 2005
  2. Bengt Richter
    Replies:
    6
    Views:
    461
    Juha Autero
    Aug 19, 2003
  3. jack
    Replies:
    4
    Views:
    583
  4. tim

    hex string to hex value

    tim, Nov 22, 2005, in forum: Python
    Replies:
    8
    Views:
    18,839
  5. Berger, Daniel
    Replies:
    0
    Views:
    81
    Berger, Daniel
    Sep 6, 2006
Loading...

Share This Page