Using a stream character, read a file and convert the entry bytes to the indicated encoding. Returns a String. If encoding is not indicated, it is used the encoding which have the server defined in the file server.xml.

<file.chars.read encoding='encoding'/>
Example

Get a string with the file content and emits the result by the console. Encoding is indicated so the generated string had characters of tje indicated encoding.

Copy
<xsql-script name='file_chars_read_sample1'>
<body>
<println>
</xsql-script>