URLEncoder()

语法

Result$ = URLEncoder(URL$)
概要
Returns the URL$ encoded to the HTTP format.

参数

URL$ The URL to encode.

返回值

Returns the encoded URL. To convert an encoded URL back to a unencoded format, use URLDecoder()

Remarks

A URL$ may not contain certain characters such as: tab, space, accent letter etc., therefore these characters must be encoded, which basically involves using "%" as an escape character.

示例

  Debug URLEncoder("http://www.purebasic.com/test with space.php3")
  ; Will print "http://www.purebasic.com/test%20with%20space.php3"

参阅

URLDecoder()

已支持操作系统

所有

<- URLDecoder() - Http Index