mb_urlencode

Definition

mb_urlencode($url, $charset)
coolfilter/mbstring.php, line 3

Code

<?php
function mb_urlencode($url, $charset) {
    $len = mb_strlen($url, $charset);
    $result = "";
    for ($i = 0; $i < $len; $i++) {
        $c = mb_substr($url, $i, 1, $charset);
        if (strlen($c) > 1) $c = urlencode($c);
        $result .= $c;
    }
    return $result;
}
?>