try_decode

Function try_decode 

Source
pub fn try_decode(src: &[u8]) -> RUMString
Expand description

Implements decoding this string from its auto-detected encoding to UTF-8. Failing that we assume the string was encoded in UTF-8 and return a copy.

Note => Decoding is facilitated via the crates chardet-ng and encoding_rs.