Python 3 process non-printable characters in a unicode string same as cat -v
I’m reading text that contains non-printable characters such as backspaces from a file example.log
.
If I’m reading the content of the file in a terminal running cat example.log
, I obtain a well formatted string:
Python 3 process non-printable characters in a unicode string
I’m reading text that contains non-printable characters such as backspaces from a file example.log
.
If I’m reading the content of the file in a terminal running cat example.log
, I obtain a well formatted string: