[Bytes->ExportString] returns the contents of a byte stream as a string. The byte stream is emptied by this operation. The parameter specifies the encoding (e.g. UTF-8, ISO-8859-1) that should be used to transform the byte stream into a string.
<?LassoScript
Variable: 'myString' = $ByteStream->(ExportString: 'Encoding');
?>
Use the [Bytes->ExportString] tag. The following example exports a string using UTF-8 encoding.
[Var:'Bytes'=(Bytes: 'This is a string')]
[$Bytes->(ExportString: 'UTF-8')]
Tag Link | [Bytes->ExportString] | Category | Bytes |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 7.0 |
Output Type | String | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
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