fn fix_encoding_errors(str: String) -> String {
        str.replace("\u{feff}", "")
            .replace("\u{9a}", "ž")
            .replace("\u{1f}", "")
    }
// --post cleaning ops:
// remove \r \n and \t
// remove spaces from start of string
// remove trailing spaces
// replace multiple spaces with a single space
post cleaning ops:
remove \r \n and \t
remove spaces from start of string
remove trailing spaces
replace multiple spaces with a single space
post cleaning ops : remove \ r \ n and \ t remove spaces from start of string remove trailing spaces replace multiple spaces with a single space
fn fix_encoding_errors(str: String) -> String {
        str.replace("\u{feff}", "")
            .replace("\u{9a}", "ž")
            .replace("\u{1f}", "")
    }
fn fix_encoding_errors ( str : String ) -> String { str . replace ( " \u{feff} " , " " ) . replace ( " \u{9a} " , " ) . replace ( " \u{1f} " , " " ) }
post cleaning ops:
remove \r \n and \t
remove spaces from start of string
remove trailing spaces
replace multiple spaces with a single space
post cleaning ops : remove \ r \ n and \ t remove spaces from start of string remove trailing spaces replace multiple spaces with a single space
str
String
str
String