Method: Log4r::MailOutputter#apply_encoding

Defined in:
lib/log4r/mail_outputter.rb

#apply_encoding(encoding, content) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/log4r/mail_outputter.rb', line 61

def apply_encoding(encoding, content)
  if encoding == "ISO-2022-JP"
    ::NKF.nkf("-j", content).force_encoding("binary")
  else
    content
  end
end