Commands and functions
P.
227 of 349
Urldecode
Urlencode
Definition
●
Function
urldecode
(
string, source encoding, target encoding
)
Arguments
●
String
data type c1400 or with a user-defined string length
●
Source encoding
with the usual designations, e.g. „UTF-8“
●
Target encoding
with the usual designations, e.g. „UTF-8“
Effect
●
A string
String
, which is in source encoding, is transmitted to the target encoding using the
URL encoding.
Data type result (return)
●
Data type string format
Example: encode
Recode a string $ÜberMich.de$
Implementation in the user program
// String:org: $Hallöchen auf http:\\enertex.de$
org=urldecode($Hall%c3%b6chen%20auf%20http%3a%5c%5cenertex.de$,$utf-8$c14,$utf-
8$c14)
Please also read the notes on p. 108.
Definition
●
Function
urlencode
(
string, source encoding, target encoding
)
Arguments
●
String
data type c1400 or with a user-defined string length
●
Source encoding
with the usual designation, e.g. „UTF-8“
●
Target encoding
with the usual designation, e.g. „UTF-8“
Effect
●
A string
String
, which is in source encoding, is transmitted to the target encoding using the
URL encoding.
Data type result (return)
●
Data type string format
Example: encode
Recode a string $ÜberMich.de$
Implementation in the user program
// String ulr=$Hall%c3%b6chen%20auf%20http%3a%5c%5cenertex.de$
url=urlencode($Hallöchen auf http:\\enertex.de$,$utf-8$c14,$utf-8$c14)
Please also read the notes on p. 108.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]