Function encoding::label::encoding_from_whatwg_label [] [src]

pub fn encoding_from_whatwg_label(label: &str) -> Option<EncodingRef>

Returns an encoding from given label, defined in the WHATWG Encoding standard, if any. Implements "get an encoding" algorithm: http://encoding.spec.whatwg.org/#concept-encoding-get