maybe an apache problem with non-ascii characters? maybe an apache problem with non-ascii characters?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

maybe an apache problem with non-ascii characters?

Started by onr, August 20, 2007, 04:26:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

onr

I am not sure if this is a php (i.e. coppermine) or general apache problem so I apologise if it doesn'T belong here but maybe someone here has come across it since I spent the last 2 days trying to find a solution with google and didn't succeed.
Ok I am running a very hacked version of Coppermine in which I have applied SEO friendly urls.

One of the lines in my .htaccess file for instance goes like this:

#search
RewriteRule ^search_(.*)$ thumbnails.php?album=search&type=full&search=$1&%{QUERY_STRING} [L]


So a URL like search_hamburg will expand to thumbnails.php?album=search&type=full&search=Hamburg

So far so good, but if the search string contains non-ascii characters like äöü or é è etc it does not work anymore.

If I try search_Lübeck for instance, the browser location changes to search_L%FCbeck and I get a 403 error. So I assume the Rewrite rule is not found or something funny is interpreted, because if I enter it manually in the location bar as:
thumbnails.php?album=search&type=full&search=Lübeck the ü again changes to %FC but it works!

The strangest thing is that this problem only occurs on my developing server on my local machine and not on my ISP's apache server. We both use the same apache (2.2) and php (5.2.3) versions so I really don't know what the problem could be. Maybe an entry to the httpd.conf file or the php.ini ?!? Anyone who has had this problem as well?
Many thanks in advance.

P.S.: I have tried all the usual suspects like AddDefaultCharset ISO-8859-1 in httpd.conf or default_charset = "iso-8859-1" in php.ini