I send a non-complex json file to a web service, upon receiving the response that seems to be a json, it contains non-readable characters. I am trying to encode or decode the content to UFT8 without success, This happens when I print the content.
use: (1)print (response.json () ['errors']. encode ('utf-8'))
or (2)print (response.text.encode('utf-8'))
says:
(1) b'Fecha de emis\xc3\xb3n , la fecha debe ser la fecha de hoy.
(2) {"errors":"Fecha de emis\xc3\xb3n la fecha del documento debe ser la de hoy" }
I should say (show the tilde in ó):
(1) b'Fecha de emisión , la fecha debe ser la fecha de hoy.
(2) {"errors":"Fecha de emisión la fecha del documento debe ser la de hoy" }