The [file->encoding] method returns the character encoding for the file represented by the [file] object.
local(f) = file(...)
#f->encoding
The code below displays which character set the file '/css/styles.css' is encoded with.
Code
local(styles) = file('/css/style.css')
#styles->encoding
Result
UTF-8
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments