Skip to main content
Participating Frequently
September 21, 2007
Question

Exporting accented characters (Unicode) in metadata

  • September 21, 2007
  • 3 replies
  • 900 views
Hi,

I wrote a little script to export the metadata to an xml file. I am having some problems where the tags contain accented characters (áéö etc.).

I managed to write the xml file with unicode encoding and the unicode characters contained in the script are transferred correctly.
However the special characters in the metadata tags are being transformed to some unreadable characters.

Is there any way to make sure these characters are transferred correctly?

Thank you

Balint
This topic has been closed for replies.

3 replies

Participating Frequently
November 30, 2008
Thanks!

Good Luck.
______
My Si tes
Participating Frequently
October 15, 2007
David,

Thank you for the help.
I tried setting the output file encoding to UTF-8 or UTF-16, with or without setting the BOM. The accented characters still come out unreadable. I tried the examples that came with the SDK (output set to the console) and they too scramble the accented characters.
In other cases, where using the iterator function, the fields that contain accented characters are completely ignored.

Finally i found the .rawData function in Photoshop that could export the accented characters. This is a much slower solution, because Photoshop has to open all the files to read the metadata.

I also experimented with my own XML files in Bridge. I can open these, do my transformations, save them and all the characters are well preserved.

Balint
dfranzen_camera_raw
Adobe Employee
Adobe Employee
October 12, 2007
Make sure that you are writing and reading the file using the same encoding. I assume you are using the ExtendScript File object to write the metadata out to a file. Set the encoding property to the appropriate character encoding. See the JavaScript Tools Guide in the Bridge SDK for more information.

-David Franzen
Quality Engineer
Adobe Systems, Inc.