barasher / go-exiftool

Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)
GNU General Public License v3.0
250 stars 44 forks source link

fixing error opening files with UTF 8 characters in the path name #50

Closed main closed 2 years ago

main commented 2 years ago

fixing error opening files with UTF 8 characters in the path name

barasher commented 2 years ago

Hi @main , thank you for the PR but you already can specify the charset you want to use when initializing the library. Have a look at the Charset init option:

e, err := NewExiftool(Charset("filename=utf8"))

Tell me if anything goes wrong, I'm closing this PR.