Skip to content

Commit

Permalink
[doc] update doc about encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHsiao1 authored Jan 12, 2024
1 parent badc272 commit 267d26d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ __exiv2_version__ = '...'
img = Image(path, encoding='ISO-8859-1')
```
- Another example: Windows computers in China usually encoded file paths by GBK, so they cannot be decoded by utf-8.
- Another option: If you don't want to specify the encoding of each image filename, you can open the image file with Python's `open()` function and then parse the image with [pyexiv2.ImageData](https://github.com/LeoHsiao1/pyexiv2/blob/master/docs/Tutorial.md#class-imagedata) .

### close

Expand Down

0 comments on commit 267d26d

Please sign in to comment.