Jump to content




How To Turn Text Into Binary


  • You cannot reply to this topic
1 reply to this topic

#1 jay5476

  • Members
  • 289 posts

Posted 12 September 2013 - 05:06 PM

how would I turn normal text into binary

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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
local str = "someString"
local tBytes = { string.byte(str, 1, #str) }






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users