I have got a requirement where I need to send a string having "\1" to some other device and it expects utf-8 format. but its getting printed in a weird format as shown below
print("*/\1/p".encode("utf-8"))
I just want my string "\1" to print as "\1" when encoded in utf-8 format.