cvs: /php4 SAPI.h php.ini-dist
| From: | Rasmus Lerdorf | Date: | Mon, 20 Mar 2000 08:20:21 +0000 |
| Subject: | cvs: /php4 SAPI.h php.ini-dist | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12424@lists.php.net to get a copy of this message | ||
rasmus Mon Mar 20 00:20:22 2000 EDT
Modified files:
/php4 SAPI.h php.ini-dist
Log:
As it turns out, there are some browsers that can't handle default
charsets. I think forcing this on is going to cause us a lot of headache,
so turn it off by default.
@ Don't default to iso-8859-1 since this confuses some browsers
Index: php4/SAPI.h
diff -u php4/SAPI.h:1.43 php4/SAPI.h:1.44
--- php4/SAPI.h:1.43 Sun Mar 19 02:56:40 2000
+++ php4/SAPI.h Mon Mar 20 00:19:51 2000
@@ -197,7 +197,7 @@
#define SAPI_HEADER_SEND_FAILED 3
#define SAPI_DEFAULT_MIMETYPE "text/html"
-#define SAPI_DEFAULT_CHARSET "iso-8859-1"
+#define SAPI_DEFAULT_CHARSET ""
#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION
#define SAPI_POST_READER_FUNC(post_reader) void post_reader(SLS_D)
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.30 php4/php.ini-dist:1.31
--- php4/php.ini-dist:1.30 Sun Mar 19 15:07:57 2000
+++ php4/php.ini-dist Mon Mar 20 00:19:51 2000
@@ -193,9 +193,9 @@
; 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.
+; PHP's built-in default is text/html
default_mimetype = "text/html"
-default_charset = "iso-8859-1"
+;default_charset = "iso-8859-1"
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;