It contains non-printing and non-ASCII characters so it can't be printed lie you want. The best Python can do is to show you the hexadecimal of those bytes (as it has done). Printable ASCII characters lie in the range 32 decimal (20 hex) to 125 decimal (7F hex). Those characters in that range are shown properly.
Example: There is no printable ASCII character for the first character which is \x01. My ASCII table shows that this character represents an ASCII SOH (start of heading) character. -Larry Bates Java and Swing wrote: > I have some output stored in a string that looks like.. > > >>>x > > '\x01\xee\x1eo\xc3+\x8b\x83\xfad\xf6E\xaa\x0ea/I\x96\x83\xf5G\xa3\rQ\xfcH\xee\r' > > > According to, http://docs.python.org/lib/typesseq-strings.html, this is > "Unsigned Hexidecimal (lowercase)". How can I get this into normal > Ascii so that I can read it? > > thanks. > -- http://mail.python.org/mailman/listinfo/python-list