Re: Error when display socekt content

2005-02-19 Thread Peter Hansen
[EMAIL PROTECTED] wrote: The displayed string looks like some wierd chars (unreadable to human being at all), when I tried to display the received message by socket. I read by this line: body = self.io.blockingRead (int(header.getFieldCN ('Content-Length'))) print "socket content: " + body I am

Error when display socekt content

2005-02-19 Thread [EMAIL PROTECTED]
Hello all, The displayed string looks like some wierd chars (unreadable to human being at all), when I tried to display the received message by socket. I read by this line: body = self.io.blockingRead (int(header.getFieldCN ('Content-Length'))) print "socket content: " + body I am new to pyth