Method: PayDesign.encode_to_sjis
- Defined in:
- lib/pay_design.rb
.encode_to_sjis(str) ⇒ Object
8 9 10 11 |
# 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 |