# File lib/jpmobile/util.rb, line 68 def utf8_to_sjis(utf8_str) if utf8_str.respond_to?(:encode) utf8_str.encode("Shift_JIS", :crlf_newline => true) else NKF.nkf("-m0 -x -W --oc=cp932", utf8_str).gsub(/\n/, "\r\n") end end