Closed neojski closed 7 years ago
@neojski you are right, on Windows it cannot read the file: https://github.com/Sobesednik/node-exiftool/pull/24
You have to pass ['charset filename=utf8']
as argument, e.g., ep.readMetadata('zdjęcie.jpg', ['charset filename=utf8'])
http://www.sno.phy.queensu.ca/~phil/exiftool/faq.html#Q18 http://u88.n24.queensu.ca/exiftool/forum/index.php?topic=6721.0
I don't have a windows machine on hand now but this looks pretty convincing. Thanks!
@neojski cool thanks for raising the issue! 👍
I was trying node-exiftool on windows in cygwin but had I experience some problems with encoding. Please note that dist-exiftool works fine whilst node-exiftool does not:
Also, please note that running exiftool directly doesn't print garbled file name: