halfgaar l33t
Joined: 22 Feb 2004 Posts: 781 Location: Netherlands
|
Posted: Sun Jan 14, 2007 1:24 pm Post subject: Apache character encoding |
|
|
I have a question about how apache2 serves documents, regarding the character encoding. I have HTML documents like this:
Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<style type="text/css">
</style>
</head>
<body>
blablabla
</body>
|
Even though they are specified as UTF-8, my own web server serves them as ISO-8859-1. However, these same documents are being served as UTF8 when I upload them to my hosting provider.
What can be the cause of this? In the Apache config, I can only assign a character set to certain filename extensions, but nothing more generic. Well, except for the default charset that is, but setting that to UTF-8 is no fix.
I read something about browsers taking the HTTP header over the <meta> tag, but if that's true, how can one specify character encoding at all? _________________ Linux backups the right way.
Get surround sound working. |
|