[Typo3-dev] Re: Character set inquery (Andreas Otto)

Martin Kutschker Martin.T.Kutschker at blackbox.net
Thu Sep 11 09:22:55 CEST 2003


From: Andreas Otto <andreas at php4win.de>
Date: Wed, 10 Sep 2003 14:57:24 +0200

> I have prepared three small HTML pages:
> <http://www.php4win.com/charset-8859-1.html>
> <http://www.php4win.com/charset-8859-15.html>
> <http://www.php4win.com/charset-us-ascii.html>
>
> The webserver sends the header ISO-8859-1 as is default with
> Apache 1.3.

No it does not:

telnet www.php4win.com 80
Trying 217.160.110.193...
Connected to www.php4win.com.
Escape character is '^]'.

GET /charset-us-ascii.html HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 11 Sep 2003 07:17:21 GMT
Server: Apache/1.3.26 (Linux/SuSE) PHP/4.2.2 mod_gzip/1.3.19.1a
Last-Modified: Wed, 10 Sep 2003 12:14:02 GMT
ETag: "3b0058-14d-3f5f158a"
Accept-Ranges: bytes
Content-Length: 333
Connection: close
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Charset Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>

<body>
<h1>us-ascii</h1>
<p>äöüß</p>
</body>
</html>
Connection closed by foreign host.

> But regardless what the webserver's charset setting is the Meta Tag
> takes precedence. According to your quote this should not happen.

Try using other character encodings as well, at least UTF-8 (because it is multi-byte).

BTW, 8859-1 and 8859-15 are nearely identical. To see any effects you should use encoding with more differences.

Masi






More information about the TYPO3-dev mailing list