force_utf8

Function force_utf8 

Source
pub unsafe extern "C" fn force_utf8(
    data: *const c_char,
    length: isize,
) -> *const c_char
Expand description

Convert string to valid UTF-8, replacing invalid parts with replacement character.

  • data: The unvalidated character array holding possible UTF-8 data
  • length: The length of data