cancel
Showing results for 
Search instead for 
Did you mean: 

URL encode

Former Member
0 Kudos
1,708

I would like to encode a URL in absl.
e.g.
& -> %26
One method would be to replace all umlauts and other special characters, but there are quite a lot of them.
Is there a function available for encoding an URL?

Accepted Solutions (1)

Accepted Solutions (1)

stefankrauth
Active Participant

Hi Peter,

This might help:

import AP.CRM.Global;
import AP.PlatinumEngineering;
var raw_url = "http://www.example.com/url_with_special?&characters=öäü";
var encoded_url = URL.Encode(raw_url);

// encoded_url would be: "http%3A%2F%2Fwww.example.com%2Furl_with_special%3F%26characters%3D%C3%B6%C3%A4%C3%BC"

Best Regards,
Stefan

Former Member
0 Kudos

Thanks, that worked

0 Kudos

Hi Stefan,

That is exactly what I was looking for last two days. Could you share other useful features of AP.PlatinumEngineering library? J

Regards,

Alexey

HorstSchaude
Product and Topic Expert
Product and Topic Expert

Hello Stefan,

Maybe a small doc featuring all "released" PlatinumEngineering libs with their functions?

Bye,
Horst

Former Member

Such a documentation would be much appreciated, since there are many (currently) hidden, but useful functions!

BR, Jürgen

Answers (1)

Answers (1)

former_member186648
Active Contributor
0 Kudos

Hi Peter,

I don't think there is any function to encode URL in ABSL.

Thanks, Pradeep.