how would I turn normal text into binary
How To Turn Text Into Binary
Started by jay5476, Sep 12 2013 05:06 PM
1 reply to this topic
#1
Posted 12 September 2013 - 05:06 PM
#2
Posted 12 September 2013 - 05:39 PM
Well you can get bytes from text, you'll need to convert from bytes to the binary (unless of course all you wanted was the bytes).
You can use the string.byte function. This function also allows us to get all the bytes by doing the following
You can use the string.byte function. This function also allows us to get all the bytes by doing the following
local str = "someString"
local tBytes = { string.byte(str, 1, #str) }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











