Skip to content

Instantly share code, notes, and snippets.

@arturdent
Created June 15, 2014 12:32
Show Gist options
  • Save arturdent/e21672eb2865c8b725a2 to your computer and use it in GitHub Desktop.
Save arturdent/e21672eb2865c8b725a2 to your computer and use it in GitHub Desktop.
solution 859
with 'C*'
"João+André".bytes.pack('C*').force_encoding('UTF-8')
with 'U*'
'Café'.codepoints.pack('U*')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment