Lasso Soft Inc. > Home

[Bytes->ExportString]

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

  • Syntax
  • Parameters
<?LassoScript
Variable: 'myString' = $ByteStream->(ExportString: 'Encoding');
?>
Required Parameters
Encoding Character set to be used for the export. This can be UTF-8, ISO-8859-1, or any chacrter set supported by the ICU Unicode library.
Examples

To export a string from a bytes stream:

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

 

 

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