ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Hiccup on February 17, 2020, 08:35:43 AM

Title: Japanese text in Slices Group Name not decoded properly
Post by: Hiccup on February 17, 2020, 08:35:43 AM
System type: Windows 8.1
ExifTool version: 11.87
Specific command line: exiftool ss_nsmb_pre22.jpg > output.txt
Console output: none. output.txt attached

The Slices Group Name is not being decoded properly. It should be Japanese text, but it displayed like "ÉQÅ[ÉÄâÊñ _É}ÉäÉI VS ÉãÉCÅ[ÉW_01ëŒêÌëêå¥_01".

The "VS" and "_01" appear to be decoded properly.
Title: Re: Japanese text in Slices Group Name not decoded properly
Post by: Phil Harvey on February 17, 2020, 09:20:45 AM
This is odd.  All of the high bytes in the "Unicode" text are zero (execept for one, which is 01).  This is not what I would expect for Japanese characters (which should mostly be 0x30 in the high byte I believe).  If anyone knows how this should be decoded, please let me know:

  | | SlicesGroupName = ..Q..[............_..}......I VS ......C..[..W_01................_01
  | | - Tag 0x0014 (86 bytes, ustr32[86]):
  | |     1ae2: 00 c9 00 51 00 c5 00 5b 00 c9 00 c4 00 e2 00 ca [...Q...[........]
  | |     1af2: 00 f1 00 a0 00 5f 00 c9 00 7d 00 c9 00 e4 00 c9 [....._...}......]
  | |     1b02: 00 49 00 20 00 56 00 53 00 20 00 c9 00 e3 00 c9 [.I. .V.S. ......]
  | |     1b12: 00 43 00 c5 00 5b 00 c9 00 57 00 5f 00 30 00 31 [.C...[...W._.0.1]
  | |     1b22: 00 eb 01 52 00 ea 00 cc 00 eb 00 ea 00 e5 00 a5 [...R............]
  | |     1b32: 00 5f 00 30 00 31                               [._.0.1]


- Phil
Title: Re: Japanese text in Slices Group Name not decoded properly
Post by: mverive on February 07, 2022, 07:25:05 PM
This looks like Shift-JIS, not Unicode.
Title: Re: Japanese text in Slices Group Name not decoded properly
Post by: Phil Harvey on February 08, 2022, 09:24:37 AM
Interesting, thanks.  According to the Adobe documentation, this should be Unicode.  There is no mention of JIS, and I can't see anywhere that the code page / character set is specified.  So I wouldn't know how to decide when this should be interpreted as JIS.

- Phil
Title: Re: Japanese text in Slices Group Name not decoded properly
Post by: Hiccup on February 08, 2022, 10:30:33 AM
Hm not sure. Maybe photoshop can output files like this if set to Japanese. This might be something for a user option rather than something that should/can be auto-detected.