Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


url_decode

Decode encoded URL strings using CURL.

Syntax

decoded = url_decode(encodedStrings)

Arguments

encodedStrings
Any single string or regular array of strings.

decoded
Array of strings. Its sizes match encodedStrings ones.

Description

url_decode(…) reverses the url_encode(…) action.

url_decode(Strings) uses the CURL parser to performs URL conversion for each element of encodedStrings.

Examples

txt = "+-._~ %23 ABC";
c = url_encode(txt)
d = url_decode(c)
d == txt
--> txt = "+-._~ %23 ABC";
--> c = url_encode(txt)
 c  =
 "%2B-._~%20%2523%20ABC"

--> d = url_decode(c)
 d  =
 "+-._~ %23 ABC"

--> d == txt
 ans  =
  T

See also

  • url_encode — Encode URL strings using CURL.
  • http_get — HTTP GET request.
  • url_split — разбивает ссылку URL (HTTP, HTTPS, FTP...)
  • hex2dec — преобразование из шестнадцатеричной системы счисления в десятичную
  • ascii — преобразование в строку ASCII

History

ВерсияОписание
2024.0.0 url_decode() added to the webtools module.
Report an issue
<< toJSON Web Tools url_encode >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:55:12 CEST 2024