Skip to content

Read the file using utf8 #17

Closed
Closed
@eldadp100

Description

@eldadp100

The parser fails reading solidity files. We found that opening the files with utf8 solves it.

def parse_file(path, start="sourceUnit", loc=False, strict=False):
with open(path, 'r', encoding="utf8") as f:

    return parse(f.read(), start=start, loc=loc, strict=strict)

Unlock.sol.txt

For example in the Unlock.sol file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions