Answer the question
In order to leave comments, you need to log in
Problem with cyrillic url addresses in modx revolution?
In the plugin (event OnHandleRequest) I try to get the url address, but it returns "-.html".
And tried like this:
$modx->request->parameters['GET'][$request_param_alias]
and so: $_GET[$request_param_alias]
$modx->aliasMap[$url_resource]
Answer the question
In order to leave comments, you need to log in
1. Register on www.phpclasses.org
2. Download the library www.phpclasses.org/package/1509-PHP-Convert-from-and-to-IDNA-Punycode-domain-names.html
3.
require_once 'idna_convert.class.php';
$IDN = new idna_convert();
$url_decode = $IDN->decode($url_resource);
//$url_decode - подставляете куда нужно вместо $url_resource
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question