altova:encode-string(InputString as xs:string) as xs:base64Binaryinteger XP3.1 XQ3.1
altova:encode-string(InputString as xs:string, Encoding as xs:string) as xs:base64Binaryinteger XP3.1 XQ3.1
Encodes the submitted string using, if one is given, the specified encoding. If no encoding is given, then the UTF-8 encoding is used. The encoded string is converted to base64Binary characters, and the converted base64Binary value is returned. Initially, UTF-8 encoding is supported, and support will be extended to the following encodings: US-ASCII, ISO-8859-1, UTF-16, UTF-16LE, UTF-16BE, ISO-10646-UCS2, UTF-32, UTF-32LE, UTF-32BE, ISO-10646-UCS4
•altova:encode-string("Altova") returns the base64Binary equivalent of the UTF-8 encoded string "Altova" •altova:encode-string("Altova", "UTF-8") returns the base64Binary equivalent of the UTF-8 encoded string "Altova" |
|