Module: PagSeguro::Utils

Extended by:
Utils
Included in:
Utils
Defined in:
lib/pagseguro/utils.rb

Instance Method Summary collapse

Instance Method Details

#to_iso8859(string) ⇒ Object



9
10
11
# File 'lib/pagseguro/utils.rb', line 9

def to_iso8859(string)
  string.to_s.unpack("U*").pack("C*")
end

#to_utf8(string) ⇒ Object



5
6
7
# File 'lib/pagseguro/utils.rb', line 5

def to_utf8(string)
  string.to_s.unpack("C*").pack("U*")
end