gnostr-invalidstring 975835.1839.124842

just for testing invalid string data
Documentation
1
2
3
4
5
6
7
/// uses unsafe to postfix the string with invalid utf8 data
#[allow(invalid_from_utf8_unchecked)]
pub fn invalid_utf8(prefix: &str) -> String {
    let bytes = b"\xc3\x73";

    unsafe { format!("{prefix}{}", std::str::from_utf8_unchecked(bytes)) }
}