Unit 'fpHTTPClient' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

EncodeURLElement

URL-encodes a string for use in URLs

Declaration

Source position: fphttpclient.pp line 511

function EncodeURLElement(

  const S: AnsiString

):AnsiString;

function EncodeURLElement(

  const S: UnicodeString

):UnicodeString;

Arguments

S

  

The string to URL-encode

Function result

The URL-encoded string

Arguments

S

  

The string to URL-encode

Description

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

See also

DecodeURLElement

  

URL-decodes a string from URL encoding


Documentation generated on: Jan 27 2026