Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: maybe an apache problem with non-ascii characters?  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

onr

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Chocolate Fish Photos
maybe an apache problem with non-ascii characters?
« on: August 20, 2007, 04:26:09 pm »

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:
Code: [Select]
#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
Code: [Select]
AddDefaultCharset ISO-8859-1 in httpd.conf or
Code: [Select]
default_charset = "iso-8859-1" in php.ini
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.