Skip to content

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

@grndng

Description

@grndng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions