LassoScript Utility
Basics Browse Detail


Tag Link [File->SetEncoding] Category File
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Sets Lasso 8.5


[File->SetEncoding] sets the character set which will be used to automatically encode data that is read from the file using [File->ReadString] or written to the file using [File->Write].


[Var: 'myFile' = (File: 'myfile.txt')]
[$myFile->(SetEncoding: 'iso-8859-1')]
[$myFile->(Write: 'Data')]
[$myFile->(ReadString: 32768)]


Required Parameters
Character Set The character set which should be used to automatically translate strings passed to [File->Write] and read from [File->ReadString].


See the Lasso 8 Language Guide for examples of how to use this tag.