Skip to main content

normalize_text_encoding_label

Function normalize_text_encoding_label 

Source
pub(crate) fn normalize_text_encoding_label(label: &str) -> &'static str
Expand description

TextDecoder のラベル正規化(WHATWG Encoding の簡易サブセット)。未知の ラベルは寛容に utf-8 へフォールバックする(この処理系の他のパース系と 同水準の簡略化)。