Sorry, I forgot to CC the list on this. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
----- Forwarded message from Jeremy Chadwick <[EMAIL PROTECTED]> ----- > From: Jeremy Chadwick <[EMAIL PROTECTED]> > To: oxy <[EMAIL PROTECTED]> > Date: Mon, 30 Jun 2008 05:14:58 -0700 > Subject: Re: [suPHP] suphp and utf-8 problem > > Does disabling it change anything for you? I'm betting it won't, but I > thought I'd ask anyways. > > As far as I know, the character set set via the HTTP Content-Type header > is controlled by the PHP script itself, and not from suPHP or mod_php5. > > Here's an example: > > <?php > echo "hello\n"; > ?> > > Results in these headers and content: > > $ curl -i -s -S http://jdc.parodius.com/test.php > HTTP/1.1 200 OK > Date: Mon, 30 Jun 2008 12:11:49 GMT > Server: Apache > X-Powered-By: PHP/5.2.6 > Transfer-Encoding: chunked > Content-Type: text/html > > hello > > > While this PHP script: > > <?php > header("Content-Type: text/html; charset=iso-8859-1"); > echo "hello\n"; > ?> > > Results in: > > $ curl -i -s -S http://jdc.parodius.com/test.php > HTTP/1.1 200 OK > Date: Mon, 30 Jun 2008 12:13:00 GMT > Server: Apache > X-Powered-By: PHP/5.2.6 > Transfer-Encoding: chunked > Content-Type: text/html; charset=iso-8859-1 > > hello > > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > On Mon, Jun 30, 2008 at 01:58:59PM +0200, oxy wrote: > > yes, mime_magic_module is enabled > > > > Jeremy Chadwick írta: > >> Do you have mime_magic_module enabled in Apache? > >> > >> Also, "charset=0" is wrong. I don't know what Apache or mod_php5 is > >> doing to induce that, but it's broken. > >> > >> Finally, Transfer-Encoding has nothing to do with this problem. > >> > >> ----- End forwarded message ----- _______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp