0

I have currently moved a website build on Kohana 3.2 to a server with PHP 5.5 and I'm having a trouble with reading parameters as they seems to be url encoded. Is that trough php or apache config?

The example is:
requested url: domain.com/städlar
application read the parameter as: st%C3%A4dlar

mod_rewrite is on

Any advice appreciated as I would need to modify the application in many places to accept url encoded parameters.

EDIT 1
I've added NE flag in any RewriteRule in .htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,NE,L]

<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [NE,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule .* index.php/$0 [NE,PT]
User 123
  • 1
  • 2

1 Answers1

0

Use function urldecode

echo urldecode('st%C3%A4dlar');

Output was: städlar

alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46