How Can I put non-latin filename & directory into IPTC tag?

Started by uemutant, February 11, 2011, 07:23:31 PM

Previous topic - Next topic

uemutant

I often use non-latin language; Korean, Japanese, Chinese...etc.
Using UTF8 encoded *.args files to write the non-latin language into IPTC work well.

For example,

in CO.cmd
Quoteexiftool -CodedCharacterSet=UTF8 -@ CO.args -k *.jpg

and in CO.args
Quote-IPTC:objectname=宇多田ヒカル

In this case, the result is perfect.


But the other case, (filename and directory name are non-latin)
Quote-IPTC:objectname<filename
-IPTC:objectname<directory

then only what I can see is "?????".

Please let me know what can I do for these problem.
Thanks.

Phil Harvey

I am assuming you are on Windows.  I really have no idea how Windows encodes the file names.  There is a know problem reading Windows files with special characters in the file name.  If you can determine the character set, you can use the -charset option accordingly when writing, but I don't hold out much hope that this will work.  We may need a Windows/Perl expert to figure out how to solve this.

- 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 ($).

uemutant

I have searched the web hundreds of times for this problem, but I couldn't figure it out clearly.
Now you gave me a simple and clear answer. I'll look forward to a successful resolution, sooner or later.

Thanks for your consideration and kindness.