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.


< encoding='encoding'/>

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.

<xsql-script name='file_chars_read_sample1'>
            < encoding="UTF-8"><file name='test.xml' type='absolute' /></>