instance method
tidy_bytes
Ruby on Rails 2.3.18
Since v2.2.3Signature
tidy_bytes()
Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string.
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 449
def tidy_bytes
chars(self.class.tidy_bytes(@wrapped_string))
end
Defined in activesupport/lib/active_support/multibyte/chars.rb line 449
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Chars