Skip to content

SyntaxError: Non-ASCII character in file '<script>', but no encoding declared #398

@charlesHenryPATARD

Description

@charlesHenryPATARD

Hi,
When I execute a python script with CS-Studio 3.2.x version, I need to add # -- coding utf-8 -- at the beginning to avoid the error SyntaxError: Non-ASCII character in file "script", but no encoding declared.
In the other way with a CS-Studio 3.1.x version the line # -- coding utf-8 -- generate this error : "org.python.antlr.ParseException: encoding declaration in Unicode string"

Is that the versions of Jython are different between CS-Studio 3.1.x and 3.2.x ?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions