Python 3:
"hurr.. ..durr".encode('unicode-escape').decode()
Python 2:
"hurr.. ..durr".encode('string-escape')
2.1m questions
2.1m answers
60 comments
57.0k users