ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: uemutant on February 11, 2011, 07:23:31 PM

Title: How Can I put non-latin filename & directory into IPTC tag?
Post by: uemutant on February 11, 2011, 07:23:31 PM
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.
Title: Re: How Can I put non-latin filename & directory into IPTC tag?
Post by: Phil Harvey on February 11, 2011, 09:18:19 PM
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
Title: Re: How Can I put non-latin filename & directory into IPTC tag?
Post by: uemutant on February 12, 2011, 03:09:56 AM
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.