Copy link to clipboard
Copied
Hey,
I'm using CEP to create a PPro extension. In my panel I use showOpenDialog to let the user select a file from the filesystem:
const file = window.cep.fs.showOpenDialog()
I selected a file called "münchen.mp4", this is what I get on the file variable
on Mac:
on Windows:
I general, it seems that every char in a filename that is not ASCII is encoded into some code on Mac machines.
Any ideas how can I solve it? and have same behaviour on both Windows and MacOS
If you use showOpenDialogEx(), you'll get the expected characters. Here's CEP HTML Test Panel 1, running in PPro:
Copy link to clipboard
Copied
Hey,
I'm using CEP to create a PPro extension. In my panel I use showOpenDialog to let the user select a file from the filesystem:
const file = window.cep.fs.showOpenDialog()
I selected a file called "münchen.mp4", this is what I get on the file variable
on Mac:
on Windows:
I general, it seems that every char in a filename that is not ASCII is encoded into some code on Mac machines.
Any ideas how can I solve it? and have same behaviour on both Windows and MacOS
If you use showOpenDialogEx(), you'll get the expected characters. Here's CEP HTML Test Panel 1, running in PPro:
Copy link to clipboard
Copied
on Mac:
Copy link to clipboard
Copied
If you use showOpenDialogEx(), you'll get the expected characters. Here's CEP HTML Test Panel 1, running in PPro:
Copy link to clipboard
Copied
Thanks, it does work partially - now I do see the string as I expect to see (visually) but look at this:
mediaName is the fileName returned from showOpenDialogEx()
currentChild.name is the filename taken from ProjectItem from the Bin (after I imported it)
my problem is that the underlying encoding seems to be different in both cases. So I cannot check the equallity between them (the above returns false although they both refer to the same video file).
Is there a way to overcome this? set the encoding?
Copy link to clipboard
Copied
Sorry, that's outside my PPro and Adobe API experience. Yes, the encoding is suspect.
This seems potentially helpful/relevant:
https://salesforce.stackexchange.com/questions/57738/how-to-decode-german-charactersgerman-umlauts-f...