![]() |
Codeigniter doesn't handle Umlaut-URLs propper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter doesn't handle Umlaut-URLs propper (/showthread.php?tid=1523) |
Codeigniter doesn't handle Umlaut-URLs propper - pexmar - 03-18-2015 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! RE: Codeigniter doesn't handle Umlaut-URLs propper - mr_pablo - 03-18-2015 Did you add the umlaut in the config? $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // add it here RE: Codeigniter doesn't handle Umlaut-URLs propper - Narf - 03-18-2015 CI doesn't do any character conversion on the URL that you pass to redirect(). RE: Codeigniter doesn't handle Umlaut-URLs propper - pexmar - 03-19-2015 (03-18-2015, 08:16 AM)mr_pablo Wrote: Did you add the umlaut in the config? Hi Mr Pablo, yeah i already added Umlaute to the permitted uri chars: PHP Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-äöüÄÖÜ'; |