Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache character encoding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Jan 14, 2007 1:24 pm    Post subject: Apache character encoding Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum