I am trying to take a users input in octal UTF-8 bytes and convert them to normal UTF-8 characters. The input is being taken from an entry field(field) in tkinter, this is how I am processing it:
input = ((self.field.get(1.0,END)).split('\n\')))
print (bytes(input[0], 'utf-8').decode('unicode_escape'))
for the example character \350\260\242 this prints "è ° ¢" when it should print 谢.
b'\350\260\252'.decode('utf-8')
returns the correct character but this is useless as I am trying to take a users input. Is there any way to take a user's input directly as bytes or is there a better way to do my decodings? any help is appreciated