Skip to main content

sharp_s_encode

Function sharp_s_encode 

Source
pub fn sharp_s_encode(payload: &str) -> String
Expand description

Sharp-s (ß U+00DF) substitution for s/S.

ß lowercases to itself in most locales, but Unicode FULL case-fold (str::to_lowercase in Rust, str.casefold() in Python) maps the CAPITAL letter sharp s (U+1E9E) to ss. WAFs that case-fold before regex see different byte sequence; backends with full Unicode casefold reach the same script / select. Narrower applicability than turkish_i_encode.