Create a literal representation with ascii in Python.
Open this example in the interactive library
print(ascii('café'))
'caf\xe9'