Method: Noteshred::Tools.encode_utf8

Defined in:
lib/noteshred/tools.rb

.encode_utf8(string) ⇒ Object



4
5
6
# File 'lib/noteshred/tools.rb', line 4

def self.encode_utf8(string)
  Base64.encode64(string).encode('utf-8')
end