Error when display socekt content

myzhang at gmail.com myzhang at gmail.com
Sat Feb 19 19:53:14 EST 2005


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 python, could you tell me where I did wrong?

Thank you,

Michael




More information about the Python-list mailing list