`Python won't run "utf-8" what to do?
L
L
LeshaRsv2022-01-30 13:22:19
Python
LeshaRsv, 2022-01-30 13:22:19

Python won't run "utf-8" what to do?

I run Python through Atom, I get an error
UnicodeDecodeError: `utf-8` codec can`t decode byte 0xc1 in position 0: invalid start byte

What should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-01-30
@LeshaRsv

Make sure the file is utf-8 encoded and doesn't have a BOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question