method

tidy_bytes

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