Skip to main content

sniff_html_encoding

Function sniff_html_encoding 

Source
pub fn sniff_html_encoding(
    bytes: &[u8],
    transport_charset: Option<&str>,
    default: &'static str,
) -> &'static str
Expand description

文書のバイト列の文字コードを決める。BOM → 通信路の charset → <meta> の走査 → default(呼び出し側の既定。普通は windows-1252)。