Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

string

Method:

UrlEncode

string UrlEncode(boolean spaceToPlus, string pre)

Encode URLs

Description:

The UrlEncode method applies to a string the encoding rules used in constructing a URL. All non-alphanumeric special characters and spaces are replaced by the percent character (%) followed by a two-digit hexadecimal code (e.g. the à character is replaced by %E0). This encoding is necessary to avoid misinterpretation of special characters in a URL during network transmission.

Parameters:
spaceToPlus

specifies if we want to replace space characters with %20 (standard encoding) or with the + character (default: no).

pre

The pre parameter provides the string to use in front of hexadecimal character codes (default: "%")

Notes:

The pre parameter can be used to execute other types of encoding. E.g. some Javascript calls require an encoding with a “\x” prefix string, as in “\x2E” (notice that the backslash character must be escaped using another backslash character in Biferno to avoid its interpretation as a special character), and sometimes in emails the text must be coded using a “=” prefix string, as in ”=2E”.

See also:

UrlDecode

Implementation:
C
 

Return to the string class