Constant std::char::REPLACEMENT_CHARACTER1.9.0[][src]

pub const REPLACEMENT_CHARACTER: char = char::REPLACEMENT_CHARACTER; // '�'
Expand description

U+FFFD REPLACEMENT CHARACTER () 在 Unicode 中用于表示解码错误。

例如,当将格式错误的 UTF-8 字节提供给 String::from_utf8_lossy 时,可能会发生这种情况。