HTTP-Live-Headers in Firefox wäre ein guter Start.
POST /login.php HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de,en;q=0.7,en-us;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 60
HTTP/1.x 200 OK
Date: Thu, 15 Jun 2006 17:24:06 GMT
Server: Apache
X-Powered-By: PHP/4.3.7
Set-Cookie: PHPSESSID=566962bdf122065669ec9309ccd2919e; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Da gibt der Server also UTF-8 zurück. Aber warum? Die allererste Zeile Code ist immer
header("Content-Type: text/html; charset=iso-8859-1");
Außerdem sollte das meta-Tag ja eigentlich für Klarheit sorgen:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
Erneutes aufrufen derselben Seite nach dem Login bringt:
GET /login.php HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de,en;q=0.7,en-us;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: PHPSESSID=566962bdf122065669ec9309ccd2919e
HTTP/1.x 200 OK
Date: Thu, 15 Jun 2006 17:29:26 GMT
Server: Apache
X-Powered-By: PHP/4.3.7
Set-Cookie: PHPSESSID=566962bdf122065669ec9309ccd2919e; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Dann stimmt's...
So denn,
mfg. Kevin.