application.showURL doesn't work when special characters

Forum to discuss the new web client version of Servoy.

application.showURL doesn't work when special characters

Postby rph » Fri Sep 24, 2021 1:46 pm

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
rph
 
Posts: 46
Joined: Wed Aug 10, 2011 11:44 am
Location: Cham, Switzerland

Re: application.showURL doesn't work when special characters

Postby jcompagner » Mon Sep 27, 2021 9:23 am

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8453
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: application.showURL doesn't work when special characters

Postby rph » Mon Sep 27, 2021 9:37 am

Thanks Johan for your reply! I've opened a ticket: https://support.servoy.com/browse/SVY-16491
rph
 
Posts: 46
Joined: Wed Aug 10, 2011 11:44 am
Location: Cham, Switzerland


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest