Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/babelish_rnc.rb
Overview
Fixes UTF8 issues see stackoverflow.com/questions/4583924/string-force-encoding-in-ruby-1-8-7-or-rails-2-x
Instance Method Summary collapse
Instance Method Details
#to_utf8 ⇒ Object
6 7 8 |
# File 'lib/babelish_rnc.rb', line 6 def to_utf8 force_encoding("UTF-8") end |