CodeIgniter Forums
Problem with cyrilic encription in URL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forum-17.html)
+--- Thread: Problem with cyrilic encription in URL (/thread-81007.html)



Problem with cyrilic encription in URL - marsislav - 01-13-2022

Hello there, I have stupid question ...
I cant open post when the frendly URL is in Cyrilic 
For exaple : https://ciblog.marsislav.net/posts/тест

My code is:

<p><a class="btn btnCool" href="<?php echo site_url('/posts/'.$post['slug']); ?>">Read More</a></p>

Thank you!


RE: Problem with cyrilic encription in URL - iRedds - 01-13-2022

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\[email protected]';


RE: Problem with cyrilic encription in URL - marsislav - 01-13-2022

(01-13-2022, 11:22 AM)iReddsThanks, mate, but it doesnt work..... Wrote: \application\config\config.php :   $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\[email protected] а-я';
and  $config['permitted_uri_chars''a-z 0-9~%.:_\[email protected]'


Both did not work Sad



RE: Problem with cyrilic encription in URL - marsislav - 01-13-2022

It`blow up this message:

A PHP Error was encountered
Severity: Warning

Message: Trying to access array offset on value of type null

Filename: controllers/Posts.php

Line Number: 25

Backtrace:

File: C:\xampp\htdocs\ciblog\application\controllers\Posts.php
Line: 25
Function: _error_handler

File: C:\xampp\htdocs\ciblog\index.php
Line: 315
Function: require_once

404 Page Not Found
The page you requested was not found.


RE: Problem with cyrilic encription in URL - iRedds - 01-13-2022

The backtrace shows that the controller has been called.
So there are no problems with the URL.