A
A
Andrey Godunko2021-12-26 20:49:51
Python
Andrey Godunko, 2021-12-26 20:49:51

How to fix non-utf-8 code starting with '\x90' in file count.exe on line 1, but no encoding declared error?

I tried many ways, none of them worked for me. I am converting .py to .exe, another program runs it. But if you run the exe separately with the mouse, then everything works. Here is the converted program code

# -*- coding: utf-8 -*-
import time
import os

time.sleep(5)
os.startfile('rin.mp3')

But I also tried: #coding:cp1252 # -*- coding: utf-8 -*- # coding=utf-8

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question