Copy link to clipboard
Copied
Hi.
I have successfully completed a script for InDesign. Now I just want to output a final message with the (dynamic) file name. Some of these files contain German umlauts (Ä, Ü, Ö). These and the spaces (not %20) should be displayed correctly in the warning message. How can I achieve this?
Regards
Use decodeURI(). So instead of myFileName, use decodeURI(myFileName)
Copy link to clipboard
Copied
I don't see problems with Umlaute but with the ordinary space.
Copy link to clipboard
Copied
Unfortunately there are still problems with umlauts. 😞
But only with the document name.
Copy link to clipboard
Copied
Use decodeURI(). So instead of myFileName, use decodeURI(myFileName)
Copy link to clipboard
Copied
Thanks Peter. That was what I was looking for 🙂