Welcome Guest, Not a member yet? Register   Sign In
Codeigniter doesn't handle Umlaut-URLs propper
#1

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!
Reply
#2

Did you add the umlaut in the config?

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

CI doesn't do any character conversion on the URL that you pass to redirect().
Reply
#4

(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~%.:_\-äöüÄÖÜ'
Reply




Theme © iAndrew 2016 - Forum software by © MyBB