This code is working on the older versions 1.8.X
@buff1 = "12"
@buff1[0] = 0x0b
@buff1[1] = 0x0e
I have udpated small part of code . Please have a look again. because in 1.8.6
I get "\016\v"
as output and in 1.9.3
showing error TypeError: can't convert Fixnum into String
Please provide solution for 1.9.3