File object can't read/encode superscript characters

Which tool versions are you using?

SDK: v13.8.0
Platform: v23.05.5
Python: v3.11
Isolation mode: venv

Current Behavior

I just upgraded to sdk 13.8, and python v3.11
In my app i upload a text file as an entity and read in the information

log_file = entity.get_file()
file_content = log_file.getvalue()

I have one file that contains a ยฒ.
Previously I had no problems. The file would be read in, and i would remove the characters before continuing.
Now however, I get an error message on the log_file.getvalue() line, before i can do anything about it.

UnicodeEncodeError: 'charmap' codec can't encode character '\ufffd' in position 24898: character maps to <undefined>

Please help :slight_smile:

What if you replace log_file.getvalue() with log_file.getvalue(encoding='utf-8')?

โ€˜utf-8โ€™ doesnt work but โ€˜latin-1โ€™ does seem to work.
Thanks :slight_smile: