Skip to content

Not able to set encoding in open_resource #1740

@JiriBalcar

Description

@JiriBalcar

If the resource from the application's resource folder is encoded in different encoding than locale.getpreferredencoding the UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 217 occures. We should be able to set encoding on open_resource

Python 3.5.1, Flask 0.10.1

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