Previous Topic

Next Topic

PercentEncode - MaxBasic Function

PercentEncode(Value: String): String

Returns a string with percent encoded reserved characters. This can be used when passing parameters to endpoints with escape characters.

PercentEncode function syntax has these named arguments:

Parameter

Description

String

Required. String to return with percent encoded reserved characters.

Sample code:

  s = "search?q=big little"

  t = PercentEncode(s)

  msgbox(t)

Returns: search%3Fq%3Dbig+little

See Also

Web Functions

Book Contents

Book Index