Die Suche ergab 1 Treffer

von psamulat
Dienstag 8. Oktober 2024, 13:44
Forum: Allgemeine Fragen
Thema: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4
Antworten: 3
Zugriffe: 3084

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4

Hallo,
in dem nachfolgenden Skript wird die eine Fehlermeldung erzeugt:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 0: invalid start byte

0xa4 sollte aber im UTF-8 ein "ä" sein. Was mache ich falsch?

##

a=0
b=""
with open("REZEPTE.BNK", "rb") as f:
while (byte := f.read ...