WPDev.one
Core Function
View Source on Trac ↗

utf8_uri_encode()

utf8_uri_encode( mixed $utf8_string, mixed $length = 0, mixed $encode_ascii_characters = false )

Encodes the Unicode values to be used in the URI.

Parameters 1 required

Name / Type Description
$utf8_string
string

String to encode.

Required
$length
int

Max length of the string.

$encode_ascii_characters
bool

Whether to encode ascii characters such as < " '

Return Value

(string)
String with Unicode encoded for URI.

Function Information

Since Version
1.5.0
Source File
wp-includes/formatting.php
Advertisement