Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I request a page like http://url/T%C3%A4st (http://url/Täst) my Apache-Error Pages display with a wrong encoding, for example:

The requested URL /Täst was not found on this server.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /Täst was not found on this server.</p>
<hr>
<address>Apache/2.2.16 (Debian) Server at sembritzki.me Port 80</address>
</body></html>

How can this be fixed?

share|improve this question
add comment

1 Answer 1

It sounds like your error page needs to specify the charset. You can either change the Apache httpd.conf file:

http://rackerhacker.com/2007/11/15/change-the-default-apache-character-set/

Or, you can add this header to the error page:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

If you're not sure what charset to use, try either utf-8 or ISO-8859-1.

share|improve this answer
    
Where can I find the default error pages? Setting AddDefaultCharset is not a good idea because it is going to force-overwrite all the meta http-equiv or xml encoding tags. –  Zulakis Sep 26 '12 at 16:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.