Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

URL encoding

Hi,
I run into problem to download files from Sharepoint when there are special characters.

I use a tHttprequest component to get the files.

As long as there is no special characters, it runs smoothly.

But as soon as there are spaces or special characters, I encounter issues.

For instance I want to download a file whose name is file example.txt (With a space between file and example), it works fine if I encode it like file%20example.txt

So I wanted to use this conversion:
java.net.URLEncoder.encode(badURI, "UTF-8")

But instead of file%20example.txt, I get file+example.txt and get an error from sharepoint.

Does anyone know how I have to adjust the method java.net.URLEncoder.encode call to get the requested result ? Or may I have to use another one ?

Regards.

Eric

Labels (2)
2 Replies
Anonymous
Not applicable

Do you write these conversion directly in the URI field of tHttpRequest? Maybe you can do it on a tJava component and assign the result to a context variable, and use the context variable as URI.

Regards
Shong
_AnonymousUser
Specialist III
Specialist III
Author

Hi,
No, I do the conversion in a tXmlmap
Eric