Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
grndng opened this issue Feb 3, 2021 · 1 comment

Comments

@grndng
Copy link

grndng commented Feb 3, 2021

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
Copy link
Owner

regebro commented Apr 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants