unescape

Function unescape 

Source
pub fn unescape(escaped_str: &str) -> Result<Vec<u8>, RUMString>
Expand description

Turn escaped character sequence into the equivalent UTF-8 character This function accepts \o, \x and \u formats. This function will also attempt to unescape the common C style control characters. Anything else needs to be expressed as hex or octal patterns with the formats above.

If I did this right, I should get the “raw” byte sequence out of the escaped string. We can then use the bytes and attempt a decode() to figure out the string encoding and get the correct conversion to UTF-8. Fingers crossed