method

tidy_bytes

rails latest stable - Class: ActiveSupport::Multibyte::Handlers::UTF8Handler

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

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