Re: [Tutor] How to convert hex representation of char? (Challenge part 8)

2005-05-19 Thread Pieter Lust
want to do is make Python believe that that string of length 4 is actually a string of length 1 that contains character 0x14. Any help on how to achieve that is appreciated. Pieter Lust ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to convert hex representation of char? (Challenge part 8)

2005-05-18 Thread Pieter Lust
ddress).read() parts = pagesource.split("'") onepart = parts[1] anotherpart = parts[3] onepart and anotherpart contain many hex representations of nonprintable characters, like '\x14'. But I can't manage to convert those to the actual nonprintable characters.