Non-unicode file name not found in Unicode directory...

Started by phamhongphuc, November 25, 2016, 02:20:34 AM

Previous topic - Next topic

phamhongphuc

English isn't my first language, so please excuse any mistakes.

I'm using Windows 10-64bit and Exiftool 10.35
This is a listing of files and folders in D:\App


Then I run exiftool -p "$FileName" "Image Folder\*"
2 directories scanned and 6 image files read


I change the directory to D:\App\Image Folder\Thư mục
And run "D:\App\Exiftool" -p "$FileName" *.*
The non-unicode file name not found but the unicode file name founded.
I change the directory to D:\App\Image Folder\Folder
And run the same command ( "D:\App\Exiftool" -p "$FileName" *.* )
Everythings founded.


OTL... I try another way like this. But the result was worse than

Phil Harvey

#1
Thanks for this report.

Wow, that is messed up! :(

Unfortunately as you see, Windows support for Unicode file names is very bad.  :(

I don't see why anything should be different just because the current directory has Unicode characters in the name.

I don't know if I can do anything to fix this, but I'll take a look when I get a chance.  Unfortunately I'm very busy right now and it may be 2 or 3 weeks before I can spend some time on this.

In your 3rd example though, maybe something like this would work:

exiftool -p '$filename" -charset filename=utf8 "d:\App\Image Folder\Thu muc"

It is best to avoid using wildcards if possible for a number of reasons.

(using the appropriate Unicode characters which I don't know how to generate.)  This assumes your console is set to UTF8.  If not you should specify the character set in place of "utf8".

What character set are you using for your console?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

phamhongphuc

#2
Thanks for your reply.

I'm developing an application based on Photoshop, Exiftool and ImageMagick.
So, wildcards needed for performance.

I like using exiftool because it can get a lot of information, which ImageMagick can't.
This is a screenshot of my app. I had give up one or two feature because Exiftool don't support Unicode very well and using ImageMagick but it's not bad at all.


I had try these command but the result it not what I expected.


The character set i'm using is 437 (OEM - United States) (default) and display in "Consolas" Font