I receive a string like this from a third-party service:
>>> s
'\\u0e4f\\u032f\\u0361\\u0e4f'
I know that this string actually contains sequences of a single backslash, lowercase u etc. How can I convert the string such that the '\\u0e4f'
is replaced by '\u0e4f'
(i.e. '๏'
), etc.? The result for this example input should be '๏̯͡๏'
.