Python Forum
string to hex and back again
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string to hex and back again
#10
He gets the values from /dev/random so there are not always in the necessary range to print them.

But can use 'replace', 'backslashreplace' or 'ignore' as a second argument to decode: https://docs.python.org/3.5/howto/unicode.html
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
string to hex and back again - by Skaperen - Apr-27-2017, 03:32 AM
RE: string to hex and back again - by volcano63 - Apr-27-2017, 04:01 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 04:34 AM
RE: string to hex and back again - by volcano63 - Apr-27-2017, 05:13 AM
RE: string to hex and back again - by wavic - Apr-27-2017, 07:10 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 07:26 AM
RE: string to hex and back again - by wavic - Apr-27-2017, 07:38 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 10:00 AM
RE: string to hex and back again - by volcano63 - Apr-28-2017, 10:50 AM
RE: string to hex and back again - by Ofnuts - Apr-27-2017, 11:14 PM
RE: string to hex and back again - by wavic - Apr-28-2017, 03:51 AM
RE: string to hex and back again - by Ofnuts - Apr-28-2017, 09:31 AM
RE: string to hex and back again - by Skaperen - Apr-28-2017, 10:00 AM
RE: string to hex and back again - by wavic - Apr-28-2017, 10:54 AM
RE: string to hex and back again - by Skaperen - Apr-29-2017, 04:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I convert this string back to a list of integers? donmerch 6 3,886 Apr-05-2020, 06:43 PM
Last Post: donmerch
  string to list and back again as same type Skaperen 10 5,671 Sep-06-2018, 08:26 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020