Skip to main content
Participant
October 10, 2008
Question

ExtendScript fails to read UTF-8 but can write it?

  • October 10, 2008
  • 3 replies
  • 1541 views
I've found what looks like a massive bug in the ExtendScript SDK/API for Bridge but I cannot find anyone else complaining about it and I find it hard to believe I could possibly be the only person to have noticed.

Bridge CS3 v2.1.1.9, ExtendScript Toolkit v2.0.2.77

In Bridge right-click on a JPEG image, do file-info and enter in a title and description for the image ensuring you use accented or extended characters (French, German, Japanese, whatever). Now this should work because XMP uses unicode/UTF-8. Save your changes. Re-opening the file-info window shows the correct data, as does the right-hand metadata palette etc.

Now from the ExtendScript Toolkit, execute the sample code SnpInspectMetadata.jsx which comes as part of the Adobe Bridge CS3 SDK.

Observe the characters displayed in the JavaScript console within the ExtendScript toolkit are garbled.

For example, enter title: ロンドン
Displayed in console: ロンドン

I have done further tests and as far as I can tell XMPMeta.setProperty() works fine, but XMPMeta.getProperty() doesn't read properties as UTF-8/unicode.

Can anyone else reproduce this and confirm my findings? Has anyone else experienced this problem... and does anyone have a solution?

Thanks
James.
This topic has been closed for replies.

3 replies

Participant
November 13, 2008
Just to confirm, I have logged this bug against both CS3 and CS4 using the official Adobe.com bug reporting page.
Participant
November 13, 2008
For anyone who's interested, I have now retested the above against CS4, specifically:-

* Bridge CS4 3.0.0.464
* ExtendScript Toolkit 3.0.0.39
* ExtendScript 3.92.114 (As reported by ESTK About)
* Script UI 4.0.38 (As reported by ESTK About)
* Adobe Bridge CS4 SDK

Same results. ExtendScript still cannot read UTF-8 from XMP data correctly.
Known Participant
November 13, 2008
> Same results. ExtendScript still cannot read UTF-8 from XMP

File a bug report:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

I haven't run across this yet (fortunately) but this will hopefully be something
that the can fix in a point release.

-X
Participant
October 10, 2008
Ah, looks like this forum only supports ISO-8859-1 (Western European) and doesn't support UTF-8, so my example title and output do not display correctly. (Hey I wonder where the whole of Adobe's Asia customer base go seeing as they cannot use this forum?)

The example title I gave above should be "London" in Japanese. The output I get in the console consists of a series of characters including some square boxes. (I am on Windows XP, output may vary on a Mac I guess).