Class: BootstrapEmail::Converter::ForceEncoding
- Defined in:
- lib/bootstrap-email/converters/force_encoding.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BootstrapEmail::Converter::Base
Class Method Details
.replace(html) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/bootstrap-email/converters/force_encoding.rb', line 6 def self.replace(html) # force utf-8 character encoded in iOS Mail: https://github.com/bootstrap-email/bootstrap-email/issues/50 # this needs to be done after the document has been outputted to a ascii string so it doesn't get converted html.sub!( '<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">', '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' ) end |