On 28.02.2021 20:58, Robin Becker wrote: > I think this is almost the right answer Christof, but since PDF is not > a textual file format I think the correct way to overcome the python3 > encode everything is to use the buffer directly eg Ah, yes, you're right. This should not be interpreted as being utf-8. -- Christoph