module PayDesign
Constants
- VERSION
Public Class Methods
encode_to_sjis(str)
click to toggle source
# File lib/pay_design.rb, line 8 def self.encode_to_sjis(str) # Perhaps this should make sure the original encoding is UTF8. str ? str.encode(Encoding::SHIFT_JIS) : nil end
encode_to_utf8(str)
click to toggle source
# 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