saxon:string-to-utf8

Returns the UTF-8 encoding of a string.

string-to-utf8($name as xs:string) ➔ xs:integer*

Arguments

 

$name

xs:string

The input string

Result

xs:integer*

Details

Namespace: http://saxon.sf.net/

This function takes a string as input, and returns a sequence of integers representing the octets in the UTF8 encoding of the string. The integers are all in the range 0-255.