Nov-07-2020, 06:57 PM
Thanks, but I still get the same error.
The problem must be at the interface between python and Windows. I have already (in a very short python programming career) encountered it in several different situations. It would seem that Windows encodes usernames in the local 8-bit codepage, which for me is ANSI alias CP1252, whereas python interprets them (in some situations, including this one) as being in utf8 — or perhaps vice versa.
Thanks for any further ideas.
The problem must be at the interface between python and Windows. I have already (in a very short python programming career) encountered it in several different situations. It would seem that Windows encodes usernames in the local 8-bit codepage, which for me is ANSI alias CP1252, whereas python interprets them (in some situations, including this one) as being in utf8 — or perhaps vice versa.
Thanks for any further ideas.