php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3620 PHP4 Apache module always sets iso-8859-1 charset
Submitted: 2000-02-25 09:18 UTC Modified: 2000-03-29 23:25 UTC
From: adam at albedo dot art dot pl Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 4 Patch Level 1 OS: NetBSD 1.4T (current)
Private report: No CVE-ID: None
 [2000-02-25 09:18 UTC] adam at albedo dot art dot pl
The result produced by PHP4 module always send document with
iso-8859-1 (or maybe some other) character set.
For example 'test.php3':

<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
--some-iso-8859-2-characters--
</html>

always displays iso-8859-1 characters instead of iso-8859-2
even when meta tag is set and browser's default character set if defined as iso-8859-2
The strange thing that e.g. Netscape show iso-8859-2 while
displaying page info.

I tried --without-mod-charset option, but it didn't work.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-10 14:56 UTC] joey at cvs dot php dot net
Where is your php.ini, and what does it have as default_charset?

You should see this in there somewhere:

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
; PHP's built-in default is text/html with the iso-8859-1 charset.
default_mimetype = "text/html"
default_charset = "iso-8859-1"

Also, can you give me a URL that I can test to see the header output?
 [2000-03-29 23:25 UTC] sas at cvs dot php dot net
This functionality was disabled for RC 1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 07 16:02:24 2024 UTC