regebro / hovercraft

Make dynamic impressive presentations from text files!
https://hovercraft.readthedocs.org
MIT License
1.48k stars 209 forks source link

Issue with encoding (got to use UTF-8 depending on the Python PATH on Windows) #219

Open grndng opened 3 years ago

grndng commented 3 years ago

Hey there, I just tried to install and run hovercraft on a test *.rst and I constantly got the syntax error that there is no encoding declared on line 1 of hovercraft-script.py:

SyntaxError: Non-UTF-8 code starting with '\xfc' in file C:\Users\**UsernameIncludingÜ**\AppData\Local\Programs\Python\Python39\Scripts\hovercraft-script.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

I guess that's because my Windows username has a "ü" in it so for that case a quick # -*- coding: utf-8 -*- solves it.

regebro commented 2 years ago

That script is generated by setuptools (or possibly pip) when you install Hovercraft, so if this still is an issue, I think that's a bug, probably in setuptools.