XF 2.0 Unicode text in URL

Hi,

In our website, the urls in unicode text are displaying correctly but when we copy paste the urls it was with special numeric codes (community/threads/%E0%AE%9A%E0%AF%80%E0%AE%A4%E0%AF).

we need it in unicode characters when we copy to?

Any help ?
 
I think here are the one way to solve problems.

/src/XF/Mvc/Router.php

Find;
PHP:
$string = strtr($string, ['"' => '', "'" => '']);

Replace with;
PHP:
    //$string = strtr($string, ['"' => '', "'" => '']);

    $string = strtr($string, array(
        '"' => '',
        "'" => '',
        "“" => '',
        "”" => '',
        "’" => '',
        "Ö" => "o",
        "ö" => "o",
        "C" => "c",
        "c" => "c",
        "Ğ" => "g",
        "ğ" => "g",
        "Ş" => "s",
        "ş" => "s",
        "Ü" => "u",
        "ü" => "u",
        "İ" => "i",
        "ı" => "i",
        "Ç" => "c",
        "ç" => "c",
        "é" => "i",
        "â" => "a",
        "Ê" => "e",
        "Â" => "a",
        "?" => "_",
        "*" => "_",
        "." => "_",
        "," => "_",
        ";" => "_",
        ")" => "_",
        "(" => "_",
        "{" => "_",
        "}" => "_",
        "[" => "_",
        "]" => "_",
        "!" => "_",
        "+" => "_",
        "%" => "_",
        "&" => "_",
        "#" => "_",
        "$" => "_",
        "=" => "_",
        "ê" => "e",
        "." => "-"
    ));

You can change the letters to use whichever you prefer. This will solve the problem.
 
Back
Top Bottom