Skip to main content

fallback_encoding

Function fallback_encoding 

Source
pub fn fallback_encoding(
    css: &[u8],
    protocol: Option<&str>,
    environment: Option<&'static Encoding>,
) -> &'static Encoding
Expand description

The fallback encoding: what the bytes are decoded with unless they start with a byte order mark. protocol is a charset label from HTTP or the like; environment is the linking document’s encoding.