You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Different utf8 escape sequences for Ţ and Ţ #66862
This is correct behavior. encodeURIComponent works off the raw UTF-8 encoding of the string. If you want to normalize, that's what String.prototype.normalize is for: encodeURIComponent("Ţ".normalize()) === encodeURIComponent("Ţ".normalize()) // true.
Activity
bakkot commentedon Oct 19, 2026
This is correct behavior.
encodeURIComponentworks off the raw UTF-8 encoding of the string. If you want to normalize, that's what String.prototype.normalize is for:encodeURIComponent("Ţ".normalize()) === encodeURIComponent("Ţ".normalize()) // true.