Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18431 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24276 invoked by uid 1010); 25 Aug 2005 15:06:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24261 invoked from network); 25 Aug 2005 15:06:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2005 15:06:14 -0000 X-Host-Fingerprint: 65.124.18.202 miranda.org Linux 2.4/2.6 Received: from ([65.124.18.202:60345] helo=miranda.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3C/56-28235-36EDD034 for ; Thu, 25 Aug 2005 11:06:12 -0400 Received: (qmail 27824 invoked by uid 546); 25 Aug 2005 11:06:08 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 25 Aug 2005 11:06:08 -0400 Date: Thu, 25 Aug 2005 11:06:08 -0400 (EDT) X-X-Sender: adam@miranda.org To: Andrei Zmievski cc: Makoto Tozawa , christopher.jones@oracle.com, PHP Developers Mailing List In-Reply-To: <74038418fdd7cdc963d93501092f4858@gravitonic.com> Message-ID: References: <430BDBAC.70701@oracle.com> <74038418fdd7cdc963d93501092f4858@gravitonic.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: PHP Unicode support design document From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Wed, 24 Aug 2005, Andrei Zmievski wrote: > I took a closer look at this today and RFC 2616 does not specify > whether user agents are supposed to send a charset parameter in the > Content-Type header of the POST request. I did not see any of my > browsers doing so. I think we can safely disregard this and rely on > http_input_encoding and output_encoding settings. We are not going to > use Accept-Charset for the reasons you mention. I don't know if this is useful, but Sam Ruby did a bunch of digging into HTTP/HTML/XML encodings and precedence rules. See this presentation -- Slides 72 - 75. (Note link below starts at slide 72.) http://intertwingly.net/slides/2005/etcon/72.html If possible, I would prefer not to assume that we only need to follow the behavior of popular user agents. Someone could be using PHP as a web service server and have people write client scripts submitting all kinds of POST data that needs to be processed correctly. In an ideal world (heh), PHP would handle all of those scripts as long as they followed the specifications. -adam -- adam@trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!