?
Solved

Accept dead keys (accents etc.) in Apache

Posted on 2005-04-25
2
Medium Priority
?
247 Views
Last Modified: 2011-09-20
I have apache installed on a linux box (Apache 1.3 / RH Enterprise Linux ES 2.1) and here in Luxemburg we use many diffrent languages so a lot of customers are uploading their files with special characters as é è ü etc.

When there is such a character in a filename, I can't open the file via apache (they a readable on the server, but I get a 404 from Apache).

Is there a correct solution for this or a workaround?

thank you
0
Comment
Question by:SiraX
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 2000 total points
ID: 13864816
depends how the files are uploaded
i.g. the special characters are preserved in the filename on the filesystem, so that's not the problem

But if you try to use such a name in an URL of your browser, the browser URL-encodes anything which is not 7-bit US-ASCII, for example ü becomes %c3%bc  for details see RFC 2396 and RFC 1738

Conclusion: never-ever use such characters in filenames to be reached via URL, or teach you users how to write these filenames URL-encoded (hard job to do this for roughly 6*10^12 humans;-)

technical you may use mod_rewrite to filter and convert such characters on the fly, but  keep in mind that there are:
 1. serveral encodings in the wild (%-encoding, UTF-8, ...)
 2. europe has a lot of characters, just think on the danish, spanish, etc.
then you have to do the rewrite rules for all combinations of 1. and 2. ... better you go with plain odd 7-bit ASCII in your filenames :-/
0
 

Author Comment

by:SiraX
ID: 13876988
thank you for your quick answer
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month15 days, 13 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question