Lasso Soft Inc. > Home

[ file->encoding ]

Method

The [file->encoding] method returns the character encoding for the file represented by the [file] object.

  • Syntax
local(f) = file(...)
#f->encoding
Examples
  • Beginner

Display the character set for a file

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

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft