WordPress 常用函数 / utf8_uri_encode
编码 Unicode 的值,用于 URI。
<?php utf8_uri_encode( $utf8_string, $length ) ?>
<?php utf8_uri_encode( $utf8_string, $length ) ?>$utf8_string
(string) (required)
Default: None
$length
(integer) (optional) 字符串的最大长度
Default: 0
(string)
已经将 Unicode 编码的字符串
sanitize_title_with_dashes() 用这个函数来转化 utf-8 字符。
Since: 1.5.0
wp-includes/formatting.php