Method: PayDesign.encode_to_utf8

Defined in:
lib/pay_design.rb

.encode_to_utf8(str) ⇒ Object



13
14
15
16
# File 'lib/pay_design.rb', line 13

def self.encode_to_utf8(str)
  # Perhaps this should make sure the original encoding is Shift_JIS.
  str ? str.encode(Encoding::UTF_8) : nil
end