Re: php 5.2.6 / apache 2.2.9 / windows 2003 / mbstring puts BOM on binary files!



On Oct 12, 12:11 am, Mehdy Mohajery <biho...@xxxxxxxxx> wrote:
       header('Content-Type: application/octet-stream');
       it strips BOM from .zip and .pdf files but not .rar files.

Strange. Is this behavior identical in all browsers? Have you looked
at the raw HTTP output with a proxy like Fiddler (it has a hex viewer
so you might be able to verify the BOM)? If you're on Windows Fiddler
works for IE and Safari without any configuration.

Steve
.



Relevant Pages