Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Correctly display umlauts in alerting messages

Participant ,
Jan 06, 2025 Jan 06, 2025

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?

 

Bildschirmfoto 2025-01-06 um 11.07.42.pngexpand image

 

Regards

TOPICS
Scripting

Views

158
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 06, 2025 Jan 06, 2025

Use  decodeURI(). So instead of myFileName, use decodeURI(myFileName)

Votes

Translate
Community Expert ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

I don't see problems with Umlaute but with the ordinary space.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

Bildschirmfoto 2025-01-06 um 13.02.46.pngexpand image

 

Unfortunately there are still problems with umlauts. 😞
But only with the document name.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

Use  decodeURI(). So instead of myFileName, use decodeURI(myFileName)

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 06, 2025 Jan 06, 2025

Copy link to clipboard

Copied

LATEST

Thanks Peter. That was what I was looking for 🙂

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines