%20 Converting to Space in URL bar

eightleggeddj

Новичок
Регистрация
26.08.2015
Сообщения
4
Благодарностей
0
Баллы
1
I am using a variable to form a URL string. The variable shows the text "sometext%20sometext" but in the url bar it is converting the %20 to an actual space so the URL won't work.

Any ideas?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 535
Благодарностей
5 934
Баллы
113
Not sure what goes wrong.... try the following processing:
Код:
var decoded = System.Web.HttpUtility.UrlDecode(project.Variables["Your_variable"].Value);
var encoded = System.Web.HttpUtility.UrlEncode(decoded);

return encoded;
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)