Python 3:
"hurr.. ..durr".encode('unicode-escape').decode()
Python 2:
"hurr.. ..durr".encode('string-escape')
548k questions
547k answers
4 comments
86.3k users