79477227

Date: 2025-03-01 07:22:25
Score: 1.5
Natty:
Report link

Thanks to all for the help. All answers were useful. My variable originally was str but I used r'' in example because python sees '\320' as one symbol and my regex didn't work. For my str variable I use the next code.

my_string = '\320\222\321\213\320\263\321\200\321\203\320\267\320\272\320\260 \320\267\320\260\321\217\320\262\320\276\320\272'
decoded_string = bytes(my_string3, "utf-8").decode('utf-8').encode("latin1").decode("utf-8")
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: SubGunDH