method
tidy_bytes
v2.0.3 -
Show latest stable
- Class:
ActiveSupport::Multibyte::Handlers::UTF8Handler
tidy_bytes(str)public
Replaces all the non-utf-8 bytes by their iso-8859-1 or cp1252 equivalent resulting in a valid utf-8 string
tidy_bytes(str)Replaces all the non-utf-8 bytes by their iso-8859-1 or cp1252 equivalent resulting in a valid utf-8 string