Sign in Join
FPDoc Onlineexperiment

EncodeURLElement function

In unit fpHTTPClient

URL-encodes a string for use in URLs

Declaration

pascal
function EncodeURLElement(const S: AnsiString): AnsiString

Arguments

S

The string to URL-encode

Function result

The URL-encoded string

Description

Encodes special characters in a string to make it safe for use in URLs by replacing them with percent-encoded sequences.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.