Scripting: copying file path with (German) umlauts

Participant ,
Mar 02, 2021 Mar 02, 2021

Copy link to clipboard

Copied

Hi,

using PS CC, Windows10, latest versions.

 

With following command I get the path of the opend image:

var theString = app.activeDocument.path + "/" + app.activeDocument.name;

 

But because of a umlaut ("ü") in the OneDrive folder in which the image is saved, I get this path

d:\OneDrive ... f%C3%BCr ...\folder\image.tif

 

Is there an option to the the right "coding" of the umlauts, in this case of the "ü"?

 

Thanks!

mycc

TOPICS
How to, Windows

Views

40

Likes

translate

Translate

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

Most Valuable Participant , Mar 02, 2021 Mar 02, 2021
The decodeURI() function would do this...   Mylenium

Likes

translate

Translate

Translate
Most Valuable Participant ,
Mar 02, 2021 Mar 02, 2021

Copy link to clipboard

Copied

The decodeURI() function would do this...

 

Mylenium

Likes

translate

Translate

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