Method: RMail::Message#charset
- Defined in:
- lib/sup/util.rb
#charset ⇒ Object
86 87 88 89 90 |
# File 'lib/sup/util.rb', line 86 def charset if header.field?("content-type") && header.fetch("content-type") =~ /charset\s*=\s*"?(.*?)"?(;|$)/i $1 end end |