Skip to content

Executing file with UTF-8 coding #20

Description

@helikopterspark

In example/cgi/executing-another-file.cgi, when executing a file containing Swedish characters the script fails on the student server. Adding encoding to open() makes it work, if changing
exec(open(fullpath).read())
to:
exec(open(fullpath, encoding='utf-8').read())

Activity

  1. self-assigned this
    on Aug 31, 2016
  2. mosbth commented on Aug 31, 2016

    @mosbth
    Member

    Yep, seems like that.
    I'll fix it.

  3. added a commit that references this issue on Aug 31, 2016
    94ab187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions