wp-includes/pluggable.php:1594URL encodes UTF-8 characters in a URL.
$matchesarraystring function _wp_sanitize_utf8_in_redirect( $matches ) { return urlencode( $matches[0] ); }Introduced in 4.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/pluggable.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.