Skip to content

Documentation of .encoding - UTF-8 vs utf-8 #58

@nitmws

Description

@nitmws

The documentation of propertyexiftool.ExifTool.encoding tells:

Default to UTF-8 if nothing is returned ...

But the code of the @encoding.setter is:

ENCODING_UTF8: str = "utf-8"
... and ...
self._encoding = new_encoding or (locale.getpreferredencoding(do_setlocale=False) or ENCODING_UTF8)

Therefore the documentation should tell:

Defaults to utf-8 if nothing is returned ...

... else debugging people like me may be wondering why the self._encoding value is not 'UTF-8'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions