Skip to content

UnicodeDecodeError on Raspberry #63

@bernardolansing

Description

@bernardolansing

I was facing a string decoding error with this library when running it on a Raspberry. Its default encoding is not UTF-8, therefore some functions crashed with an unhandled exception. I have the code fixed here, how can I push it into the repository?

Edit: anyway it's a one-line fix, you can do it yourself. In file _system.py, import locale and in line 45, instead of 'utf-8' put locale.getpreferredencoding(). That's all.

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