Skip to content

UnicodeDecodeError / Change strict_decode value of trim_label function #84

@afrigeri

Description

@afrigeri

Hi,

from a script, when pdr.read, we got:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 11853: invalid start byte

from a pdr-unsupported dataset.

I would like to change the strict_decode argument of the trim_label function from True to False, so that text.decode's errors arg goes from errors="strict" to="replace".

Is there a suggested way to change the value of the trim_label argument when importing the modules in a script?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions