application.showURL doesn't work when special characters

Hi

We’ve got the following issue:

We produce a file, then we make it a remote file (plugins.file.convertToRemoteJSFile) and finally we wan’t it to be downloaded in the browser (application.showURL).

This works when the file name is for example “Auftragsbestaetigung.docx”. But if the file name has special characters in it like “Auftragsbestätigung.docx” this doesn’t work.

What we’ve tried so far:

  • use the original file name
  • encode the url with “encodeURI(…)”
  • encode the url with "encodeURIComponent(…)
  • escape none ASCII-Characters with escape(…)

None of the above solutions work. We get an error (404) in the browser: This page … doesn’t exist!

But the file could be found in the file system under the file-plugin folder as expected!

Thanks for any hints on that issue.

Best
Roland

i guess the problem is we need to encode (when we generate the url) and decode (when we get it back) it at both ends in the same way.
So create a case for this, so we can have a look

Thanks Johan for your reply! I’ve opened a ticket: https://support.servoy.com/browse/SVY-16491