Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. byte_string = input("Enter your Bytes string = ").encode()
  2.  
  3. print(byte_string)
  4.  
  5. Enter your Bytes string = qxbb3xd8xabx1a2AMxb0?x8anxc6xd1xce
  6. b'q\xbb3\xd8\xab\x1a2AM\xb0?\x8a\n\xc6\xd1\xce'
  7.  
  8. byte_string = byte_string.decode("utf-8")
  9.  
  10. print(byte_string)
  11.  
  12. qxbb3xd8xabx1a2AMxb0?x8anxc6xd1xce
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement