I have a legacy database with latin1 encoding. I do not have access to change it to utf8. When I read values from the model, I am getting garbled text.
I tried to use name.decode('utf-8') but it is throwing a unicode error:
'ascii' codec can't encode characters in position 4-12: ordinal not in range(128)
name.encode('utf-8') doesnt work either.