string byte dump
Jammer
ask.me at mail.com
Sun Jan 28 14:04:35 EST 2007
More information about the Python-list mailing list
Sun Jan 28 14:04:35 EST 2007
- Previous message (by thread): string byte dump
- Next message (by thread): string byte dump
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Rob Wolfe wrote: > Jammer <ask.me at mail.com> writes: > >> Does anyone that knows python want to write me a byte dump for strings? :-) >> >> I am trying to modify a plugin (that someone else wrote) that uses >> interprocess communication. >> It works on strings without special characters but it fails on other >> stings like "Björk". >> >> It calls decode('utf8') but I guess the strings are not utf8 so I need >> to find out what is being input. > > Try this: > >>>> "abc".encode("hex") > '616263' > Awesome, thanks.
- Previous message (by thread): string byte dump
- Next message (by thread): string byte dump
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list