Skip to content

UnicodeDecodeError charmap (On Windows) #135

@yarbs

Description

@yarbs

lineno 97-99 for https://github.com/dadadel/pyment/blob/master/pyment/pyment.py
encoding is not defined when opening the file, default encoding on windows is cp1252 and fails when a unicode character is encountered.

Suggest adding an argument to argparse and add a parameter to init of PyComment.

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