Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-20 Thread Tim Roberts
On Wed, 19 Oct 2005 09:51:32 +1000, Kinsley Turner [EMAIL PROTECTED] wrote: Hey-ho, I'm having a problem with some binary data read into a string. Basically I open an icon file rb, read() it into a string, then spit it back down on a web request for /favicon.ico. It works fine under unix, but

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-19 Thread Justin Ezequiel
Date: Thu, 20 Oct 2005 10:04:24 +1000 From: Kinsley Turner [EMAIL PROTECTED] I checked the icon, it seemed to be ok. I'm unfamiliar with win32 tools, but it seemed that the data being delivered from the socket rendered differently from a python print() compared to a terminal 'type

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-19 Thread Gabriel Genellina
At Wednesday 19/10/2005 21:04, you wrote: I think you might be correct with the headers suggestion, that was going to be my next point of investigation. I don't think the MIME type of image/bmp is acceptable to IE. Should be image/vnd.microsoft.icon or image/x-icon, but NOT image/bmp (icon