CodeIgniter Forums

Full Version: Codeigniter doesn't handle Umlaut-URLs propper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I got a Umlaut-Domain (www.homöop[...].de) for a Project, on which I'm using Codeigniter. The Problem is, that it seems like codeigniter can't handle Umlaut-Domains. When I'm using redirect() (from URL-Helper), I become redirected to an URL where Codeigniter replaced 'ö' with %26/#246;. So the whole URL looks like http://www.hom%26/#246;op[...].de/index.php/myfunction
The reason for the replace with %26/#246; is, that i set the config.php base_url to:

PHP Code:
$config['base_url']    = 'http://www.homöop[...].de/'

I already tried to add a Convertion-Rule for ö as a malicious character in system/core/URI.php. It solved some problems with Umlaut-URLs but it didn't solve the problem explained obove.

Do you have ideas how to fix it? Thanks!
Did you add the umlaut in the config?

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // add it here
CI doesn't do any character conversion on the URL that you pass to redirect().
(03-18-2015, 08:16 AM)mr_pablo Wrote: [ -> ]Did you add the umlaut in the config?

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // add it here


Hi Mr Pablo,

yeah i already added Umlaute to the permitted uri chars:

PHP Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-äöüÄÖÜ'