Function std::str::from_utf8_owned

pub fn from_utf8_owned(vv: ~[u8]) -> ~str

Consumes a vector of bytes to create a new utf-8 string

Failure

Raises the not_utf8 condition if invalid UTF-8