Description
Encodes a blob value using URL encoder.
Applies to
CoderObject object
Syntax
coder.UrlEncode ( variable )
Argument |
Description |
---|---|
coder |
The name of the CoderObject object. |
variable |
A blob whose value is the data you want to encode with URL encoder. When using the system blob function to convert a string to a blob, it is recommended to specify its encoding argument to be EncodingANSI! (for English characters only) or EncodingUTF8!, otherwise, the default EncodingUTF16LE! will be used. |
Return value
String. Returns the result of the encoding if it succeeds. If any argument's value is null, the method returns null. If an error occurs, throw the exception.
Examples
This statement encodes the data using URL and returns the encoded data.
Blob lblb_data String ls_UrlStr lblb_data = Blob("https://www.appeon.com", EncodingANSI!) CoderObject lnv_CoderObject lnv_CoderObject = Create CoderObject ls_UrlStr = lnv_CoderObject.UrlEncode(lblb_data)
See also